Server/node.js
Unhandled rejection SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client
void
2019. 12. 2. 10:00
$ create database PORTFOLIO default character set utf8;
$ grant select, insert, update,delete on PORTFOLIO.* to 'void'@'%';
$ FLUSH PRIVILEGES
$ show grants for void@'%';
Sequelize로 mysql에 접근하려고 했다.
> 발생한 에러
Unhandled rejection SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client
> 해결법
$ ALTER USER root IDENTIFIED WITH mysql_native_password BY 'password';
Your password does not satisfy the current policy requirements
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
=> 비밀번호가 정책에 비해 안전하지 않다는 것이다.
> 해결법
비밀번호를 정책에 따라 비밀번호를 어렵게 쓰면 된다.
$ SHOW VARIABLES LIKE 'validate_password%'