code: 'ER_NOT_SUPPORTED_AUTH_MODE', errno: 1251, sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client', sqlState: '08004', fatal: true
"db_config" : { "protocol" : "mysql", "host" : "127.0.0.1", "database" : "mysql", "user" : "root", "password" : "123", "port" : 3306 }
解决办法
执行这两句:
alter USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRENEVER; alter USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '修改自己的密码';
这个时候再执行应该就可以了
问题原因
通过bd,终于找出了报错原因:
具体的话可以看看: