-
installation
sudo apt-get install -y mysql-server mysql-client
-
set password
sudo mysql -uroot -p ( 执行该条命令后直接回车进入 )
update mysql.user set plugin="mysql_native_password" where user="root"; grant all on *.* to root@"localhost"; update mysql.user set authentication_string=password('这里填写新密码') where user='root'and Host = 'localhost'; flush privileges;
-
The reopening of terminal test Login
mysql -uroot -p
-
Enter a password that is successful landing ~
Mysql installation deepin-linux_15.11
Guess you like
Origin blog.csdn.net/Brannua/article/details/105014296
Recommended
Ranking