Selected version '5.7.37-1ubuntu18.04' (MySQL: ) for 'mysql-community-server' Selected version '5.7.37-1ubuntu18.04' (MySQL: ) for 'mysql-client' Press the Y key to start the installation and set the root password when prompted. ![]() mysql-server:Īfter you have MySQL 5.7 repository in your system, you can install it using the apt install : $ sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7* You should see MySQL 5.7 repository appearing at the bottom of the list. You need to import the missing gpg key with the following command : $ sudo apt-key adv -keyserver -recv-keys 467B942D3A79BD29Īfter that, rerun the apt update : $ sudo apt updateĬheck if MySQL 5.7 repository is successfully installed by using this command : $ sudo apt-cache policy mysql-server If you encounter the "signature couldn't be verified" error like this : The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29 After that, choose mysql-5.7 and then select ok.Īfter it's finished, update the APT repository : $ sudo apt update And then select the MySQL Server & Cluster option. Once it's downloaded, install the repository : $ sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb ![]() Download MySQL repository using the following commands : $ wget ![]() Prerequisitesĭeploy a fully updated Ubuntu 20.04 server.Ĭreate a non-root user with sudo privileges.īecause Ubuntu 20.04 only has MySQL 8.0 in the APT repository, you need to add MySQL 5.7 repository first before installing it. This tutorial explains how to add MySQL 5.7 package and install it on Ubuntu 20.04. But, sometimes, you need MySQL 5.7 for your legacy apps that don't support MySQL 8.0 yet. Ubuntu 20.04 comes with MySQL 8.0 as the default package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |