图文并茂解决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

图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL

查了一下资料,我改了两个地方

1.配置了服务器安全组策略,新增了3306端口

图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL

2.我修改mysql加密规则为普通模式,默认是严格加密模式

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的数据库密码';

操作步骤如下:然后重启node.js进行测试

图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL

大功告成~

欢迎路过的小伙伴们提出更好的方式

学无止境,合作共赢

图文并茂解决Client does not support authentication protocol requested by server; consider upgrading MySQL

上一篇:【MIT6.S081/6.828】手把手教你搭建开发环境


下一篇:使用Android Studio调试系统应用之TvSettings(二):build.gradle