1sudo apt update
2sudo apt install -y wget
3wget https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
4sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
5 Select <OK> and press <Enter> key to confirm version installation.
6sudo apt update
7sudo apt install mysql-community-server
8 Set root password for your MySQL database server. and confirm it
9 Select the default authentication plugin.
10 When asked for root password, provide the password and confirm it to set.
11sudo systemctl enable --now mysql
12
13You can test if the database server is working fine by creating a test database:
14sudo mysql -u root -p