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

一、Navicat

在生产环境中操作MySQL数据库还是推荐使用命令行工具mysql,但在我们自己开发测试时,可以使用可视化工具Navicat,以图形界面的形式操作MySQL数据库。

官网下载:https://www.navicat.com/en/products/navicat-for-mysql

网盘下载:https://pan.baidu.com/s/1bpo5mqj

 

Navicat连接MySQL Server8.0版本时报错:

Client does not support authentication protocol requested  by server;

 

解决如下:

命令如下:

1、use mysql;

2、alter user 'root'@'localhost' identified with mysql_native_password by 'admin';

3、flush privileges;

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

 

上面的admin是我的密码,读者改为自己的即可。

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

 

 双击成功连接!后续也无再次敲命令,直接连接即可。

你可能感兴趣的:(Navicat连接Mysql报错:Client does not support authentication protocol requested by server;)