Navicat连接Mysql报错:Client does not support authentication protocol requested by server;

 

Navicat连接MySQL Server8.0版本时出现Client does not support authentication protocol requested  by server;

1,启动MySQL 8.0 Command Line Client

Navicat连接Mysql报错:Client does not support authentication protocol requested by server;_第1张图片

2,输入密码,登录Mysql

3,分别输入如下命令

USE mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;

 

 Navicat连接Mysql报错:Client does not support authentication protocol requested by server;_第2张图片

4,重新登录Navicat,成功

5,原因:mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password 
把mysql用户登录密码加密规则还原成mysql_native_password

Navicat连接Mysql报错:Client does not support authentication protocol requested by server;_第3张图片

6,安装完成后,默认密码加密方式

Navicat连接Mysql报错:Client does not support authentication protocol requested by server;_第4张图片

7,完成第3步的修改之后,密码加密方式

Navicat连接Mysql报错:Client does not support authentication protocol requested by server;_第5张图片

你可能感兴趣的:(数据库)