Home > Article > Computer Tutorials > Tutorial on compiling and installing MySQL5.7 on Ubuntu 20.04 system.
MySQL 5.7 can be installed by using the official MySQL APT repository. Here are the steps to install MySQL 5.7 via the official APT repository on Ubuntu 20.04 systems:
Add MySQL APT repository:
wget https://dev.mysql.com/get/mysql-apt-config_0.8.17-1_all.debsudo dpkg -i mysql-apt-config_0.8.17-1_all.deb
During the installation process, you will see a configuration interface. Select the MySQL Server version as 5.7, and then complete the configuration.
Update package list:
sudo apt update
Install MySQL 5.7:
sudo apt install mysql-server
During the installation process, you will be asked to set a password for the MySQL root user.
Verify installation:
sudo systemctl status mysql
If MySQL has started successfully, its status information will be displayed.
Please note that installing MySQL 5.7 through the official APT repository is the recommended method on Ubuntu 20.04 to ensure official support and updates.
The above is the detailed content of Tutorial on compiling and installing MySQL5.7 on Ubuntu 20.04 system.. For more information, please follow other related articles on the PHP Chinese website!