navicat 连接mysql报错:Client does not support authentication protocol requested by server

本地mysql运行正常,但是连接Navicat时报错:

Client does not support authentication protocol requested by server; consider upgrading MySQL client

让我升级客户端……省省吧

解决办法如下:

第一步:
USE mysql;
第二步:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456789';
第三步:
FLUSH PRIVILEGES;

注:root是你的用户名,localhost是ip地址127.0.0.1都是特指本机,mysql_native_password是旧密码验证机制,123456789是你自己的mysql密码

navicat 连接mysql报错:Client does not support authentication protocol requested by server_第1张图片

再次连接Navicat:
navicat 连接mysql报错:Client does not support authentication protocol requested by server_第2张图片

navicat 连接mysql报错:Client does not support authentication protocol requested by server_第3张图片

可以连接成功~
问题解决

你可能感兴趣的:(后台)