UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication p...

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

解决方案

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

  1. UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication p..._第1张图片

  2. 把加密方式改为mysql_

UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication p..._第2张图片

SQL

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

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

转载于:https://www.cnblogs.com/roseAT/p/11455641.html

你可能感兴趣的:(UnhandledPromiseRejectionWarning: SequelizeConnectionError: Client does not support authentication p...)