解决MySQL8.0报错Client does not support authentication protocol requested by server...问题

03-05 阅读 0评论

解决MySQL8.0报错Client does not support authentication protocol requested by server; consider upgrading MySQL client问题

解决MySQL8.0报错Client does not support authentication protocol requested by server...问题,解决MySQL8.0报错Client does not support authentication protocol requested by server...问题,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,服务器,修改,第1张
(图片来源网络,侵删)

原创:丶无殇  2023-10-07


报错内容

解决MySQL8.0报错Client does not support authentication protocol requested by server...问题

使用node.js连接数据库MySQL 8时候,报错ER_NOT_SUPPORTED_AUTH_MODE,并且提示Client does not support authentication protocol requested by server; consider upgrading MySQL client:客户端不支持服务器请求的身份验证协议;考虑升级MySQL客户端;

报错原因

最新的MySQL模块并未完全支持MySQL 8.0的caching_sha2_password加密方式,而MySQL 8.0中默认仍然是caching_sha2_password加密方式,因此用户认证不通过了。

解决MySQL8.0报错Client does not support authentication protocol requested by server...问题

如下查询:

解决MySQL8.0报错Client does not support authentication protocol requested by server...问题,解决MySQL8.0报错Client does not support authentication protocol requested by server...问题,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,服务器,修改,第4张
(图片来源网络,侵删)
mysql> alter user 'root'@'localhost' identified by '123456';
Query OK, 0 rows affected (0.02 sec)

解决MySQL8.0报错Client does not support authentication protocol requested by server...问题

这里的“123456”是你自己的密码

解决方法

直接数据库工具里面修改加密方式mysql_native_password:

解决MySQL8.0报错Client does not support authentication protocol requested by server...问题

或者通过指令方式修改:

mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
Query OK, 0 rows affected (0.01 sec)

解决MySQL8.0报错Client does not support authentication protocol requested by server...问题

免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,人围观)

还没有评论,来说两句吧...

目录[+]