idea连接数据库 The specified database user/password combination is rejected: com.mysql.cj报错

报错如下图:idea连接数据库 The specified database user/password combination is rejected: com.mysql.cj报错_第1张图片
解决方法:

jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

转载自:https://blog.csdn.net/weixin_39938635/article/details/90212775

你可能感兴趣的:(java-项目环境问题)