当前位置: 代码迷 >> 综合 >> Navicat 连接 mysql 8.0 提示:client does not support authentication protocol requested by server;
  详细解决方案

Navicat 连接 mysql 8.0 提示:client does not support authentication protocol requested by server;

热度:64   发布时间:2023-12-28 00:23:49.0

报错:client does not support authentication protocol requested by server;consider upgrading Mysql client

解决办法:

1.进入MySQL操作环境mysql的bin目录下

mysql -uroot -p

2.然后执行更新用户密码:
(密码还是可以用原来设置的密码,这里主力是更新加密方式)

alter user '你的mysql账户'@'%' identified with mysql_native_password by '你的mysql密码';

注意:是 @ '%' ,%是指定任意链接,当然这样可能不安全,常规我们用的'localhost',但是这里不一定成功,所以用了'%'

3.以上做完了,记得flush一下。

flush privileges;

 

  相关解决方案