首页 > 数据库> > 图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL
图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL
作者:互联网
今天服务器部署node.js+mysql,调用接口报错ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
查了一下资料,我改了两个地方
1.配置了服务器安全组策略,新增了3306端口
2.我修改mysql加密规则为普通模式,默认是严格加密模式
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的数据库密码';
操作步骤如下:然后重启node.js进行测试
大功告成~
欢迎路过的小伙伴们提出更好的方式
学无止境,合作共赢
标签:requested,protocol,consider,support,mysql,upgrading,MySQL,图文并茂 来源: https://www.cnblogs.com/sugartang/p/15352609.html