Navicat连接Mysql报错:Client does not support authentication protocol requested by server;
Posted Duanson
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Navicat连接Mysql报错:Client does not support authentication protocol requested by server;相关的知识,希望对你有一定的参考价值。
Navicat连接mysql Server8.0版本时出现Client does not support authentication protocol requested by server;解决如下:
首先我们连接数据库
mysql -u 用户名 -p
接下来输入你的密码,登录成功后显示下面的信息
我们接着使用下面sql指令打开mysql这个数据库
use mysql;
修改用户的认证规则
alter user \'你的用户名\'@\'localhost\' identified with mysql_native_password by \'你的密码\';
最后刷新权限
flush privileges;
以上是关于Navicat连接Mysql报错:Client does not support authentication protocol requested by server;的主要内容,如果未能解决你的问题,请参考以下文章