新装了mysql8.0后再用navicat链接就会报2059的错误。
1.进入mysql命令: mysql -uroot -p
2.输入你的密码:xxxx
然后运行以下SQL即可
alter user \'root\'@\'%\' identified by \'123456\' password expire never; alter user \'root\'@\'%\' identified with mysql_native_password by \'123456\'; flush privileges;