- Install mysql
- Run mysql service
mysql -u root -p
create user 'username'@'localhost' identified by 'password';
grant all privileges on *.* to 'username'@'localhost';
\q
exitmysql -u username -p
create database db_name;
Unhandled rejection SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YourRootPassword';
-- or
CREATE USER 'foo'@'%' IDENTIFIED WITH mysql_native_password BY 'bar';
-- then
FLUSH PRIVILEGES;