学业帮助
wb_sunny
登录
mysql
MySQL安装后本地Navicat连接报错:1251—Clients does not support authentication protocol……...
首页
mysql
MySQL安装后本地Navicat连接报错:1251—Clients does not support authentication protocol……...
导出为
×
PDF
Markdown
MySQL安装后本地Navicat连接报错:1251—Clients does not support authentication protocol……...
最后修改人
黄正
最后修改时间
2023-08-11 08:36:19
创建人
黄正
创建时间
2023-08-11 08:36:19
该文档由
黄正
创建于
2023-08-11 08:36:19
,
黄正
在
2023-08-11 08:36:19
修改了该文档 。
1251 -Client does not support authentication protocol requested by server; consider upgrading MySQL client 解决方法: 进入cmd 1、进入mysql的bin目录,输入:cd C:\Program Files\MySQL\MySQL Server 8.0\bin 2、登录mysql,输入:mysql -u root -p 3、输入密码,进入 4、更新一下用户的密码,执行下面的语句: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码'; 5、刷新权限 FLUSH PRIVILEGES; 如果连接还报错,执行如下: 1、进入mysql的bin目录,输入:cd C:\Program Files\MySQL\MySQL Server 8.0\bin 2、登录mysql,输入:mysql -u root -p 3、输入密码,进入 4、use mysql; 5、select host from user where user='root'; 6、update user set host = '%' where user ='root'; 7、flush privilegs; 8、ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '你的密码';
sentiment_satisfied
很赞
sentiment_very_dissatisfied
看不懂
sentiment_dissatisfied
潦草