MySQL 2059错误

MySQL 2059错误

2018年06月28日 14:31:37 Dimming_123 阅读数:1361

新装了mysql8.0后再用navicat链接就会报2059的错误。

上网查了发现是8.0之后mysql更改了密码的加密规则,只要在命令窗口把加密方法改回去即可。

 
  1. alter user root@localhost identified by 'password' password expire never;

  2. alter user root@localhost identified with mysql_native_password by 'password';

  3. flush privileges;

其中单引号圈起的‘password’是你的数据库密码而不是字符password。

猜你喜欢

转载自blog.csdn.net/qq_34331610/article/details/83317332