deepin15.11 installation mysql5.7.29

Article Directory

Download and install

Use sudo apt install mysql-server mysql-clientthe default installation is MariaDB,
so from mysql official website to download and install

Here Insert Picture Description

If 8.x version, click on the upper right Looking for previous GA versions? Switch to version 5.x

deepin15.11 corresponds Debian9 (through the command cat /etc/debian_versionto view the Debian version), where select Debian Linux, Debian Linux9

Here Insert Picture Description
Download the above four files in order to install.

start up

After installation, mysql service has been launched by default, but by

mysql -u root -p

Login (default password is empty), tips

Plugin ‘unix_socket’ is not loaded Error
  1. Stop mysql service
service mysql stop
  1. Then edit the configuration file mysql
 sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
  1. In the [mysql]next increase
skip-grant-tables
  1. Start mysql
service mysql start
  1. Log on again
Released three original articles · won praise 0 · Views 83

Guess you like

Origin blog.csdn.net/chenshanhai/article/details/104580002