select host,user,plugin,authentication_string from mysql.user;
先查看一下自己的用户信息,登陆的user所对应的plugin不是mysql_native_password时会出现上述问题

解决方法:改密码即可(顺便改了加密方式,问题出在加密方式,我这里随便改的123)
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘123’;
FLUSH PRIVILEGES;

原因:mysql8.0版本以后就更新的密码加密方式,插件plugin由caching_sha2_password改为了mysql_native_password,所以我们改这个即可,下面配上两张图

Navicat连接MySQL出现1251-Client does not support authentication protocol requested by server
Navicat连接MySQL出现1251-Client does not support authentication protocol requested by server

相关文章:

  • 2021-07-19
  • 2021-08-04
  • 2021-04-12
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
相关资源
相似解决方案