navicat 无法连接MySQL1045

版权声明:本文为博主原创文章,未经博主允许不可转载。转载请注明出处 https://blog.csdn.net/qq_32442967/article/details/86690740

Navicat无法连接mysql,报错1045.

1.重置root用户的密码

update user set authentication_string=password('123456') where user='root';

2.刷新MySQL的系统权限相关表

flush privileges;

3.退出mysql

quit; 

4.停止mysql

net stop mysql;

5.启动mysql

net start mysql

6.重新连接mysql即可。


猜你喜欢

转载自blog.csdn.net/qq_32442967/article/details/86690740