脚本宝典收集整理的这篇文章主要介绍了ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol ...以及如何打开MySQL终端。,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
书接上回,数据库(Mysql)与node.js绑定时出现了问题
ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
简而言之,就是Mysql8.0版本之后与登录数据库的客户端不兼容了,8.0密码认证采用了新的密码格式
解决方式:打开mysql终端
输入:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
// 'password'是你的数据库密码
mysql终端在哪
打开MySQL的下载路径,
输入cmd
输入mysql -u root -p,随后根据提示输入密码
然后输入
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
// 'password'是你的数据库密码
即可
以上是脚本宝典为你收集整理的ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol ...以及如何打开MySQL终端。全部内容,希望文章能够帮你解决ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol ...以及如何打开MySQL终端。所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。