问题:jar包运行时报以下错误
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)] with root cause
检查过密码正确,可以在linux本地登录,也可以在远程连接公网ip+3306端口登录
原因:未知
解决方法: 重置mysql密码(不要纠结用简单密码,反正不用背)
ALTER user '用户名'@'连接地址' IDENTIFIED BY '新密码';
#例如
ALTER user 'root'@'%' IDENTIFIED BY 'root0.ROOT';