关于node中 mysql 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'

首先造成这个问题的原因是你密码写错了或者忘记密码了

解决方案的

我们打开sqlworkbench重置一下密码就好了:

use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的新密码';
FLUSH PRIVILEGES;

修改成功后,重新启动服务链接即可,记得将代码中的密码和当前修改的密码一致

猜你喜欢

转载自www.cnblogs.com/yang656/p/12631336.html
今日推荐