How to install mysql on debian: 1. Download and install Mysql APT Repository; 2. Install directly through the command "apt-get install mysql-server".
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 repositoryDownload 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 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
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 method
Recommended study: "mysql 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!