Home  >  Article  >  Computer Tutorials  >  Tutorial on compiling and installing MySQL5.7 on Ubuntu 20.04 system.

Tutorial on compiling and installing MySQL5.7 on Ubuntu 20.04 system.

王林
王林forward
2024-02-19 16:57:17824browse

Ubuntu 20.04系统编译安装MySQL5.7教程。

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:

  1. 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.

  2. Update package list:

    sudo apt update
  3. 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.

  4. 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!

Statement:
This article is reproduced at:mryunwei.com. If there is any infringement, please contact admin@php.cn delete