错误记录:
1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
错误原因:
mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password。
解决方案:
解决:①升级navicat驱动;②把mysql用户登录密码加密规则还原成mysql_native_password。
方式②需要Win+R,输入cmd打开命令行,进入MySQL的bin目录,然后输入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; #刷新权限
标签:requested,protocol,consider,mysql,MySQL,加密,password
From: https://www.cnblogs.com/hwrex/p/18327210