1.项目环境
是node项目,安装了mysql8.0的社区版,执行时候,出现下面的问题:
MySQL 8.0 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
2.解决方式
在mysql的sql控制台,编辑下面语句:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
目的是:刷新数据库根用户的权限。