今天服务器部署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 '你的数据库密码';