原因:mysql 8加密规则问题
更改加密规则: ALTER USER 'ycc'@'%' IDENTIFIED BY 'you password' PASSWORD EXPIRE NEVER; 修改一下密码: ALTER USER 'ycc'@'%' IDENTIFIED WITH mysql_native_password BY 'you password'; 注意mysql最新的加密规则、太简单的密码不允许通过