Node.js & MySQL - Error: 1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

前端 未结 4 1104
一生所求
一生所求 2021-02-14 05:51

Right now I have only this code:

const Sequelize = require(\'sequelize\');
const sequelize = new Sequelize(\'database\', \'root\', \'passwd\', {
  host: \'localh         


        
4条回答
  •  你的背包
    2021-02-14 06:04

    Basically when I was trying to connect to Mysql Query Browser at that time I as facing the issue.

    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'
    

    Worked for me. root password is changed to 'root'

提交回复
热议问题