阿里云中的mysql,Ubuntu下的口令初始修改方法

查看sudo cat /etc/mysql/debian.cnf

进到系统中。。。
mysql -u debian-sys-maint -p
 

use mysql;
// 下面这句命令有点长,请注意。
update mysql.user set authentication_string=password('root') where user='root' and Host ='localhost';
update user set plugin="mysql_native_password";
flush privileges;
quit;
---------------------
作者:syrdbt
来源:CSDN
原文:https://blog.csdn.net/qq_38737992/article/details/81090373
版权声明:本文为博主原创文章,转载请附上博文链接!

原文地址:https://www.cnblogs.com/weiryang/p/10905653.html