Navicat 无法连接MySQL8.0 出现1251- Client does not support authentication protocol 错误
原因:mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password
解决办法:把mysql用户登录密码加密规则还原成mysql_native_password.
1.打开DOS命令行,进入MySQL的bin目录,然后输入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 '123456'; #更新一下用户的密码
FLUSH PRIVILEGES; #刷新权限
李小家