Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错

Posted torchstar

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错相关的知识,希望对你有一定的参考价值。

1、问题原因

通过相关问题查阅,发现是由于navicat版本的问题造成连接失败。mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password

2、问题解决

2.1查看版本,确定问题

 

 或者登陆状态下查看

 

 2.2、添加命令规则

ALTER USER \'root\'@\'localhost\' IDENTIFIED BY \'password\' PASSWORD EXPIRE NEVER; //划线部分修改为自己的密码

  修改密码

ALTER USER \'root\'@\'localhost\' IDENTIFIED WITH mysql_native_password BY \'password\'; //划线部分修改为自己的新密码

  刷新权限,修改生效

FLUSH PRIVILEGES; 

  

 

以上是关于Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错的主要内容,如果未能解决你的问题,请参考以下文章

client does not support authentication

mysql服务设置远程连接 解决1251 client does not support ..问题

client does not support authentication

docker mysql Client does not support

Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by serv

ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol ...以及如何打开MySQL终端。