Prerequisites
- Linux servers running Ubuntu 20.04
- root privileges
Step 1 – Add MySQL APT repository in Ubuntu
Ubuntu already comes with the default MySQL package repositories. In order to add or install the latest repositories, we are going to install package repositories . Download the repository using the below command:
sudo apt update sudo apt install wget -y wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb
Once downloaded, install the repository by running the command below:
sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb
In the prompt, choose Ubuntu Bionic and click Ok
The next prompt shows MySQL 8.0 chosen by default. Choose the first option and click OK