解决Navicat for MySQL 连接 Mysql 8.0.11 出现1251- Client does not support authentication protocol 错误

 

原因:mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password, 

解决问题方法有两种:

方法1.把mysql用户登录密码加密规则还原成mysql_native_password. 

进入到安装mysql数据库的目录中;
mysql -u root -p

Enter password:******

ALTER USER "root"@'localhost' IDENTIFIED WITH mysql_native_password BY "password";

#注意是双引号,老哥;避免意外情况哈;

FLUSH PRIVILEGES;

#刷新权限

重新登录OK了

方法2:升级客户端,估计没人这么干吧

相关文章:

  • 2021-05-17
  • 2022-01-18
  • 2021-04-15
  • 2021-07-27
  • 2021-10-12
  • 2021-11-21
  • 2021-06-15
猜你喜欢
相关资源
相似解决方案