新装了mysql8.0后再用navicat连接就会报2059的错误。mysql
8.0以后mysql更改了密码的加密规则,只要在命令窗口把加密方法改回去便可。sql
#其中单引号圈起的‘password’是你的数据库密码而不是字符password。 alter user root@localhost identified by 'password' password expire never; alter user root@localhost identified with mysql_native_password by 'password'; flush privileges;