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

Posted Student-JacobLee

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IntelliJ IDEA连接不上数据库 (Connection to testdb@localhost failed. [08001] Could not create connection to 相关的知识,希望对你有一定的参考价值。

问题提示为:

原因:mysql数据库版本为8.0以上,需要在URL加上时区,即加上?serverTimezone=GMT

成功后为:

以上是关于IntelliJ IDEA连接不上数据库 (Connection to testdb@localhost failed. [08001] Could not create connection to 的主要内容,如果未能解决你的问题,请参考以下文章