Fork me on GitHub

UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client

UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client

解决方案

使用可视化数据库管理工具操作




2. 把加密方式改为mysql_

SQL

ALTER USER `nowadmin`@`localhost` IDENTIFIED WITH mysql_native_password;

nowadmin 替换成操作目标数据的用户名,
这里最好不使用root用户 创建一个新的用户使用Sequelize操作

posted @ 2019-09-03 21:01  粥里有勺糖  阅读(1979)  评论(0编辑  收藏  举报