springtboot 连接mysql 报错,原因mysql是8.x的,加密方式得变
进入sqlsql :
cd C:\mysql-8.0.28-winx64\bin
登录sql
mysql -u root -p
输入
use mysql
select user,host,plugin,authentication_string from user;
然后输入这个修改模式
alter user 'root' @'localhost' identified with mysql_native_password by '你的密码';