Ubuntu 20.04 LTS just released and this is how to install MySQL 8 on Ubuntu 20.04 LTS in an easy and clean method.
You can download Ubuntu 20.04 LTS here.
Steps to Install MySQL 8
First, you may check your ubuntu version by running this command:
lsb_release -a
Then, download and install the release package:
curl -OL https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
After that, run update command to check for updates if any:
sudo apt update -y
Then, run install command to install mysql server. Please note that you need to remember the root password which you supplied during installation.
sudo apt install mysql-server -y
After installation finish, the MySQL server will start automatically. To check the status, run this command:
sudo systemctl status mysql
To enable MySQL server on reboot, you may run this command:
sudo systemctl enable mysql
I plan to do a screen recording on how to install MySQL 8 on Ubuntu 20.04 but no time at the moment. If you have problems with this tutorial, let me know.