安装Mysql 8.0后,使用Navicat连接不上,报"2059 - authentication plugin 'caching_sha2_password' ..."错误
解决方案:
在cmd中登录mysql
使用命令行:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
原因是
mysql8之前的版本中加密规则为mysql_native_password,而在mysql8以后的加密规则为caching_sha2_password。