client does not support authentication protocol requested by server; consider upgrading MySQL client(客户端不支持服务器请求的身份验证协议;请考虑升级MySQL客户端)

解决过程:

一、进入MySQL的安装bin目录,进入黑窗口

navicat连接时:client does not support authentication protocol requested by server; consider upgrading MySQL client

 

二、使用root用户名登录(需要输入密码)

mysql -u root -p

navicat连接时:client does not support authentication protocol requested by server; consider upgrading MySQL client

 

 三、插叙用户信息

select host,user,plugin,authentication_string from mysql.user;

navicat连接时:client does not support authentication protocol requested by server; consider upgrading MySQL client

 

host为%表示不限制ip   

host为localhost表示本机使用   

plugin非mysql_native_password值 则需要修改密码,并以此协议修改密码

 四、更改用户密码(新密码仍然为root密码)

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

五、刷新权限

flush privileges;

navicat连接时:client does not support authentication protocol requested by server; consider upgrading MySQL client

 

 六、再次查询用户信息

navicat连接时:client does not support authentication protocol requested by server; consider upgrading MySQL client

 

 七、使用navicat重新连接

navicat连接时:client does not support authentication protocol requested by server; consider upgrading MySQL client

 

相关文章:

  • 2021-06-14
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-04-23
  • 2021-10-14
  • 2021-11-09
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
相关资源
相似解决方案