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操作


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM