首页 > 数据库技术 > 详细

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

时间:2020-01-26 15:27:50      阅读:286      评论:0      收藏:0      [点我收藏+]

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 you do so.

If that doesn‘t work, try it without @‘localhost‘ part.

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

原文:https://www.cnblogs.com/wuenze/p/12234261.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!