出现这个原因是mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password, 解决问题方法有两种,一种是升级navicat驱动,一种是把mysql用户登录密码加密规则还原成mysql_native_password
1、登录Mysql:
mysql -u root -p
2、修改账户密码加密规则并更新用户密码:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
3、刷新权限并重置密码
FLUSH PRIVILEGES;
4、重置密码
alter user 'root'@'localhost' identified by 'root';
此处将密码改为root
标签:sha2,加密,plugin,2059,密码,mysql,password,root,native From: https://www.cnblogs.com/lslhhh/p/17297728.html