ERROR [ExceptionHandler] ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
nestjs连接数据库时报错
原因:mysql8.0版本的密码加密方式不同了
解决办法就是指定加密方式重新设置一下密码。
命令行设置:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password1234'
刷新命令:FLUSH PRIVILEGES
windows用户可以图形界面从新配置一下