
Run the command below to secure MySQL sudo mysql_secure_installation Libmecab2 libtinfo5 mysql-client mysql-common mysql-community-client mysql-community-server mysql-serverĠ upgraded, 7 newly installed, 0 to remove and 90 not upgraded.Īfter this operation, 315 MB of additional disk space will be used.Įnter and re-enter root password when prompted Step 4: Secure MySQL 5.7 Installation The following NEW packages will be installed: Libmecab2 libtinfo5 mysql-common mysql-community-client The following additional packages will be installed: Selected version '5.7.35-1ubuntu18.04' (MySQL: ) for 'mysql-server' Selected version '5.7.35-1ubuntu18.04' (MySQL: ) for 'mysql-community-server' Selected version '5.7.35-1ubuntu18.04' (MySQL: ) for 'mysql-client' Hit the y key to start installation of MySQL 5.7 on Ubuntu 20.04 Linux. Having found MySQL 5.7 in our system, we are going to install MySQL 5.7 client, MySQL 5.7 server with the below command: sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7* Step 3: Install MySQL 5.7 on Ubuntu 20.04 Now search for MySQL 5,7 using apt-cache as shown below: $ sudo apt-cache policy mysql-serverĪs you can see MySQl 5.7.31-1ubuntu18.04 is appearing in the list. Run the below command to update your system packages sudo apt-get update

Choose the last otpion Okand click OK Step 2: Update MySQL Repository The next prompt selects MySQL5.7 by default. In the next prompt, select MySQL 5.7 server and click OK. The next prompt shows MySQL 8.0 chosen by default. In the prompt, choose Ubuntu Bionic and click Ok Once downloaded, install the repository by running the command below: sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb
