How To Install MySQL 5.7 On Ubuntu 20.04
How To Install MySQL 5.7 On Ubuntu 20.04
How To Install MySQL 5.7 On Ubuntu 20.04
04 | ComputingForGeeks
You can support us by downloading this article as PDF from the Link below.
In our guide today, we are looking at how to install MySQL 5.7 on Ubuntu 20.04
(Focal Fossa) Server. MySQL is one of the most commonly used Database
Management Systems. It uses the concept of relational databases and has a
client/server architecture. It can be installed on various operating systems
including Windows, CentOS and Debian among others.
The below steps describe how to install and con gure MySQL 5.7 on Ubuntu
20.04. It start with adding APT repository with packages for MySQL then dives to
the actual package installations and con gurations.
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:
https://computingforgeeks.com/how-to-install-mysql-on-ubuntu-focal/ 1/6
22/1/2021 How To Install MySQL 5.7 on Ubuntu 20.04 | ComputingForGeeks
The next prompt shows MySQL 8.0 chosen by default. Choose the rst option
and click OK
In the next prompt, select MySQL 5.7 server and click OK.
The next prompt selects MySQL5.7 by default. Choose the last otpion Ok and
click OK
https://computingforgeeks.com/how-to-install-mysql-on-ubuntu-focal/ 2/6
22/1/2021 How To Install MySQL 5.7 on Ubuntu 20.04 | ComputingForGeeks
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:
Hit the y key to start installation of MySQL 5.7 on Ubuntu 20.04 Linux.
https://computingforgeeks.com/how-to-install-mysql-on-ubuntu-focal/ 3/6
22/1/2021 How To Install MySQL 5.7 on Ubuntu 20.04 | ComputingForGeeks
$ sudo mysql_secure_installation
Press Enter. When prompted for password, provide the root password set
above.
To con rm the installed version, rst, connect to MySQL with the set root
password.
$ mysql -u root -p
https://computingforgeeks.com/how-to-install-mysql-on-ubuntu-focal/ 4/6
22/1/2021 How To Install MySQL 5.7 on Ubuntu 20.04 | ComputingForGeeks
$ SELECT VERSION();
+-----------+
| VERSION() |
+-----------+
| 5.7.31 |
+-----------+
1 row in set (0.00 sec)
While still connected to MySQL, run the following commands to create a user:
To access the database from a remote machine, run the following command:
You have successfully installed MySQL 5.7 on Ubuntu 20.04. Check more
interesting Linux guides below:
https://computingforgeeks.com/how-to-install-mysql-on-ubuntu-focal/ 5/6
22/1/2021 How To Install MySQL 5.7 on Ubuntu 20.04 | ComputingForGeeks
You can support us by downloading this article as PDF from the Link below.
Lorna Chepkoech
https://computingforgeeks.com/how-to-install-mysql-on-ubuntu-focal/ 6/6