Home  >  Article  >  Database  >  How to install mysql on debian

How to install mysql on debian

藏色散人
藏色散人Original
2021-11-26 14:15:4012163browse

How to install mysql on debian: 1. Download and install Mysql APT Repository; 2. Install directly through the command "apt-get install mysql-server".

How to install mysql on debian

The operating environment of this article: debian10 system, mysql8.0, Dell G3.

How to install mysql on debian?

Debian10 Install mysql

##Debian10 uses MariaDB in There is no mysql in the APT package repository

Download here (https://dev.mysql.com/downloads/) MySQL Community Server When you select Debian, it will be recommended to use Mysql APT Repository, so we download Install Mysql APT Repository by updating APT Repository and then use apt-get to install


How to install mysql on debianHow to install mysql on debian

  • Download and install Mysql APT Repository

    apt-get install ./ Downloads/mysql-apt-config_0.8.14-1_all.deb
    The following interface appears and you can see it
    mysql server default mysql-8.0 version
    Tools and Connectors are enabled by default
    Preview Packages are Disabled by default

    Just install everything by default and select ok If you want to install 5.7, you can choose other versions in the first step as shown in the figure below

    How to install mysql on debian How to install mysql on debian

  • apt-get update You can see that mysql already exists


    How to install mysql on debianHow to install mysql on debian

  • Direct apt-get install mysql- Just install the server (

    As you can see from the picture below, the actual installation is the community server) The root password input setting will appear

    Then the password security verification option will appear. Recommended strong authentication methodHow to install mysql on debian
    How to install mysql on debian

  • Then you can enter mysql


    How to install mysql on debian

  • ##Execute mysql_secure_installation OK Make some security settings
  • We just install and learn mysql casually. The basic choice is n.



    How to install mysql on debian

  • ##dpkg-reconfigure mysql-apt- config can go to the first step again to select and update the Repository
  • After the installation is completed, you can see what content mysql has installed and you can see that the client has also been installed.

  • Recommended study: "How to install mysql on debianmysql video tutorial

    "

The above is the detailed content of How to install mysql on debian. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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