问题:
Navicat for MySQL连接mysql-8.0.13,出现1251- Client does not support authentication protocol .....
之所以出现这个错误 ,是因为mysql-8以上版本默认使用 caching_sha2_password 身份验证机制,但Navicat for MySQL版本较低,不支持这种验证,支持的是mysql_native_password,当然就无法连接。
解决方法
把mysql用户登录密码加密规则还原成mysql_native_password.
步骤:
1.登陆数据库
2.查看用户信息
select host,user,plugin,authentication_string from mysql.user;
plugin一列,身份验证机制果然是caching_sha2_password 。
又发现竟然没有root