mysql修改root密码

1、在Navicat界面进入,右键点击 命令列界面

2、依次输入: use mysql;

3、如果是5.7以下版本用 update user set password=password('xxxxxxxx') where user='root';

如果是5.7以上版本则用 update user set authentication_string=password('xxxxxxx') where user='root';

4、刷新权限: flush privileges;

5、编辑Navicat连接,重新登录

 

posted @ 2019-04-08 16:48  关键步就几步  阅读(1895)  评论(0编辑  收藏  举报