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连接,重新登录

原文地址:https://www.cnblogs.com/javabg/p/10671545.html