MySQL 8.0 的加密方式改变了,加密规则是caching_sha2_password,MySQL 8.0之前的加密规则是caching_sha2_password。解决办法:1.升级Navicat,2.把mysql用户登录密码加密规则还原成mysql_native_password。
步骤:
1.登录:mysql -u root -p
Enter password: ******
2.use mysql;
Database changed
mysql> select user,host from user;
3.ALTER USER 'root'@'%' IDENTIFIED BY '123456' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
flush privileges;
来源:CSDN
作者:正在改BUG
链接:https://blog.csdn.net/Hu531053/article/details/103245653