记idea连接mysql数据库java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeExcepti问题

出错场景:

打开idea链接数据库输入数据库账号密码以及数据库点击【Test Connection】提示java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeExcept

解决方法:

jdbc:mysql://localhost:3306/你要连接的数据库?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

 

 

 

posted @ 2021-04-08 09:12  池左岛夜香  阅读(666)  评论(0编辑  收藏  举报