/* github */

navicat连接mysql出现2059

 

1、找到mysql的目录:C:\Program Files\MySQL\MySQL Server 8.0\bin

2、清空此目录,输入cmd,回车

3、在控制台输入:mysql -u root -p

4、键入密码=>回车

5、修改加密规则,键入命令:ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

6、修改密码,键入命令:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '131556';

7、刷新权限,键入命令:FLUSH PRIVILEGES;

8、重新连接,success。

posted on 2019-07-18 17:41  王精灵  阅读(9533)  评论(0编辑  收藏  举报