mysql修改密码

进入mysql之后输入命令行:

alter user root@'localhost' identified with mysql_native_password by '123456';

 

之后:

flush privileges;

 

exit(退出重新登录);

原文地址:https://www.cnblogs.com/xinkun/p/9597351.html