MySQL 2059错误

xiaoxiao2022-06-11  26

MySQL 2059错误

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

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

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

 

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

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

flush privileges;

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

转载请注明原文地址: https://www.6miu.com/read-4931356.html

最新回复(0)