错误MySQL 返回:
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
出现这种问题也只有在MYSQL4.1.x以上版本,用4.0.x就没问题了
原因是因为你使用的mysql服务器版本中使用了新的密码验证机制,这需要客户端的版本要在4.0以上,原来的密码函数被改为old_password ();,这样使用password()生成的密码在旧的版本上的客户端就不好使了,而PHP中的MYSQL客户端都是3.23的(当然,mysqli的扩展除外),问题就在这了。
目前已知解决方法:
1、进入命令行下,转到MYSQL目录的BIN目录下,进入MYSQL命令行模式:
例:d:\mysql\bin>mysql -uroot -p123 (用户root,密码123)
2、输入命令:
mysql>set password for 'root'@'localhost'=old_password('123'); (注意冒号不能少)
3、退入MYSQL命令行:
mysql>\q
分享到:
相关推荐
mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
用root用户登陆PHPmyAdmin出现Client does not support authentication ...
A.2.3 Client does not support authentication protocol MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If ...
MYSQL出现" Client does not support authentication "的解决方法
1251- Client does not support authentication protocol …的错误,网上查了一下 ,某位前辈直接给出了答案,特此记录,以为成长道路上留下足迹… 原因: mysql 8.0之前的版本的加密规则与8.0不同,之前是mysql_...
1、拉取最新的mysql:docker pull mysql 2、配置端口映射以及密码启动mysql:docker run ‐p 3306:3306 ‐‐name mysql02 ‐e MYSQL_ROOT_PASSWORD=123456 ‐d mysql 3、进入docker中mysql控制台:docker exec -it ...
1251 – Client does not support authentication protocol requested by server; consider upgrading MySQL client 二、原因 MySQL 8.0 改变了密码认证方式。 在 MySQL 8.0 之前版本的密码认证方式为: mysql_...
文件拷贝工具,绿色版,FastCopy,很好用的工具,文件拷贝工具,绿色版,FastCopy,很好用的工具,
主要给大家介绍了关于MySQL连接抛出Authentication Failed错误的分析与解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
1.使用Navicat客户端连接本地mysql,报错:1251- Client does not support authentication protocol requested by server;consider upgrading Mysql client。 问题原因 mysql8 之前的版本中加密规则是mysql_native_...
解决Navicat for MySQL 连接 Mysql 8.0.4 出现1251 Client does not support authentication protocol requested by server;consider upgrading MySQL client 错误
Client does not support authentication protocol requested by server; consider upgrading MySQL client 原因在于MySQL8.0换了加密插件,而数据库管理客户端还是原来旧版本的加密方式,主要在于安装MySQL8.0过程...
Typescript-koa-微服务 使用TypeScript和Koa.js的示例微服务架构。 基于《清洁架构》一书。 包括以下内容: 数据库连接 ...{ Error: Client does not support authentication protocol requested by
5.4.24 481 Dialog/Transaction Does Not Exist 119 5.4.25 482 Loop Detected 119 5.4.26 483 Too Many Hops 119 5.4.27 484 Address Incomplete 120 5.4.28 485 Ambiguous 120 5.4.29 486 Busy Here 121 5.4.30 ...
问题1:Client does not support authentication protocol requested by Server;… 问题2:Unknown initial character set index ‘255′ received from server… 问题3:MySQL8.0连接必要url语句 问题4:调用方法...
这使您可以接收事件,例如插入,更新,删除及其数据和原始SQL查询。 基于伟大的创作者: : 和 安装 在你的项目中 ... 或独立 ...composer install -o 兼容性(基于集成测试) ... mysql 8.0(仅适用于mysql_native
String identifier for Client Certificate authentication. clone() - Method in class javax.servlet.http.Cookie Overrides the standard java.lang.Object.clone method to return a copy of this cookie. ...
如果使用 Navicat连接MySQL Server8.0版本时出现Client does not support authentication protocol requested by server; 解决办法: mysql> use mysql; mysql> alter user 'root'@'localhost' identified with ...
This profile does not address requirements for network infrastructure components that implement S/MIME V3, such as mail list agents (MLAs) and secure mail gateways (e.g., security guards). Such ...