node.js 连接mysql报 ‘08004‘ ,Client does not support authentication protocol requested by server; consi

/usr/local/MySQL/bin/mysql -u root -p

输入数据库密码(注意';')

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';

刷新权限命令

 FLUSH PRIVILEGES;

你可能感兴趣的:(个人,mysql,数据库,服务器)