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

王林
Release: 2024-02-19 16:57:17
forward
782 people have browsed it

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
    Copy after login

    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
    Copy after login
  3. Install MySQL 5.7:

    sudo apt install mysql-server
    Copy after login

    During the installation process, you will be asked to set a password for the MySQL root user.

  4. Verify installation:

    sudo systemctl status mysql
    Copy after login

    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!

Related labels:
source:mryunwei.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!