1251-client does not support authentication protocol requested by server
今天在安装完mysql的后 ,使用Navicat连接mysql数据库的时候,出现如上图片的错误。特来总结:

解决方案:
在mysql主机登录后

1.查看用户信息
select host,user,plugin,authentication_string from mysql.user;
1251-client does not support authentication protocol requested by server

备注:
host为 % 表示不限制ip
localhost表示本机使用
plugin非mysql_native_password 则需要修改密码

2.修改用户密码
ALTER USER ‘root’@‘localhosst’ IDENTIFIED WITH mysql_native_password BY ‘newpassword’; #更新一下用户的密码 root用户密码为newpassword
1
1251-client does not support authentication protocol requested by server
1251-client does not support authentication protocol requested by server
现在就可以连接mysql了。

相关文章:

  • 2022-12-23
  • 2021-07-11
  • 2021-05-17
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-05-17
猜你喜欢
  • 2021-06-12
  • 2021-07-19
  • 2022-01-19
  • 2022-12-23
相关资源
相似解决方案