Idea连接MySQL异常[Could not create connection to database server. Attempted reconnect 3 times.]

Posted 一只楠喃

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Idea连接MySQL异常[Could not create connection to database server. Attempted reconnect 3 times.]相关的知识,希望对你有一定的参考价值。

Idea连接mysql异常


很久不用idea连接mysql,突然报错

解决办法就是在连接后加入下面这个

?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC


这样就可以了

以上是关于Idea连接MySQL异常[Could not create connection to database server. Attempted reconnect 3 times.]的主要内容,如果未能解决你的问题,请参考以下文章

Idea连接MySQL异常[Could not create connection to database server. Attempted reconnect 3 times.]

IntelliJ IDEA连接不上数据库 (Connection to testdb@localhost failed. [08001] Could not create connection to

IntelliJ IDEA连接不上数据库 (Connection to testdb@localhost failed. [08001] Could not create connection to

Idea 连接数据库出错Connection to xxx@localhost failed. [08001] Could not create connection to database

[08001] Could not create connection to database server. Attempted reconnect 3 time ... more 针

连接远程的redis 集群报Could not get a resource from the pool异常