MySQL8.0 连接出现 Authentication plugin 'caching_sha2_password' cannot be loaded
mysql8.0 之前版本加密规则是mysql_native_password ,mysql8.0之后版本加密规则是caching_sha2_password 。
首先先登入mysql 登录命令:mysql -u root -p
修改加密规则
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;
重置密码命令:
alter user 'root'@'localhost' identified by '此处填写你的新密码';
全部完成就可以用navicat连接mysql了。