navicat 连接 mysql 出现1251Client does not support authentication protocol requested by server

本文转自 :https://blog.csdn.net/Macbook_Yang/article/details/80518372

前期修改root密码问题(首次安装的root密码是空,直接Enter就行):

cmd用管理员身份进入,然后输入

mysqladmin -u root -p password newpassword

需要注意的是无需单引号(之前在网上找的是有单引号结果一直无法成功),newpassword就是新的密码,如下图:

1.启动mysql并登入:

2.登入成功后mysql > 样式中输入

ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’;

末尾的分号不能少;123456就是Navicat中root的链接密码,网上大部分这里‘root’@’localhost’写的是‘root’@’%’(又导致我无法连接 成功了N多时间。。),需要特别注意也是我走坑最多的地方,一定要注意标点符号;一定要注意标点符号;一定要注意标点符号;单引号一定是英文的(有些地方复制下来就是中文的)

成功后最后记得输入

FLUSH PRIVILEGES;

更改密码后需用flush privileges刷新MySQL的系统权限相关表,否则会出现拒绝访问,还有一种方法,就是重新启动mysql服务器,来使新设置生效。

此时就可以成功链接Navicat了。

自己的操作:问题确实解决了

原文地址:https://www.cnblogs.com/wsnan/p/11357646.html

时间: 2024-10-10 12:16:54

navicat 连接 mysql 出现1251Client does not support authentication protocol requested by server的相关文章

MySQL——navicat 连接 mysql 出现1251Client does not support authentication protocol requested by server的解决方案

前期修改root密码问题(首次安装的root密码是空,直接Enter就行): cmd用管理员身份进入,然后输入 mysqladmin -u root -p password newpassword 需要注意的是无需单引号(之前在网上找的是有单引号结果一直无法成功),newpassword就是新的密码,如下图: 1.启动mysql并登入: 2.登入成功后mysql > 样式中输入 ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_

navicat 连接 mysql 出现Client does not support authentication protocol requested by server解决方案

安装了navicat 和 mysql,结果最后在navicat中连接mysql时,出现了如下错误提示: Client does not support authentication protocol requested by server; consider upgrading MySQL client 解决方法:在mysqll里依次输入 1 USE mysql; 2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_passw

navicat连接mysql出现Client does not support authentication protocol requested by server解决方案

USE mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '831015'; FLUSH PRIVILEGES; root是用户名 localhost是ip地址127.0.0.1都是特指本机,%表示任何IP都可访问 mysql_native_password是旧的密码验证机制,831015是密码,最后别忘了分号: 原文地址:https://www.cnblogs.com/linjiqin/p

nodejs 连接 mysql 出现 Client does not support authentication protocol requested by server; consider upgrading MySQL client

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password' Where root as your user localhost as your URL and password as your password Then run this query to refresh privileges: flush privileges; Try connecting using node after

007-解决Navicat报错1251-Client does not support authentication protocol requested by server;consider upgrading MySQL client

报错: 解决方法: 输入select host,user,plugin,authentication_string from mysql.user;  看用户信息 更改加密方式,重置密码:(原加密方式为:alter user 'root'@'localhost' identified by  '123';) alter user 'root'@'localhost' identified by  '123'; 刷新权限:flush privileges; 再看看加密方式: 没有乱码现象 再次尝试

连接mysql8.0版本出现1251--Client does not support authentication protocol requested by server的解决

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码 FLUSH PRIVILEGES; #刷新权限 原文地址:https://www.cnblogs.com/yxfcnbg/p/1054499

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

上篇刚写了安装Mysql,想用Navicat去连接,然后就报错了,此处记录报错解决. 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 '********';

navicat for mysql 链接时报错:1251-Client does not support authentication protocol requested by serve

navicat for mysql 链接时报错:1251-Client does not support authentication protocol requested by serve 解决方法: mysql> ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; mysql> select host,user,plugin,authentication_string from mysql.use

【已解决】使用Navicat连接MySQL数据库时报错Client does not support authentication protocol requested by server; consider upgrading MySQL client

报错缘由: 起初在验证一个mybatis的demo时提示"Error querying database"(见下方完整代码),找了很多方法没有解决,最后在贴吧找到答案.错误原因是安装mysql时Authentication Method选择了第一种强加密方法,改成第二种问题就解决了. 解决方法: 打开mysql安装程序(或者重装,但是重装很麻烦),重新配置MySQL Server 配置Authentication Method这一步时,选择第二种加密方法,重新打开Navicat,问题解