关于node中 mysql Client does not support authentication protocol requested by server; consider upgradin

'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;

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

上一篇:报错解决——No packages in any requested group available to install or update


下一篇:Navicat连接Mysql报错:Client does not support authentication protocol requested by server;