mysqlspringboot启动报错Could not create connection to database server. Attempted reconnect 3 times. (代码片

Posted xiaostudy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysqlspringboot启动报错Could not create connection to database server. Attempted reconnect 3 times. (代码片相关的知识,希望对你有一定的参考价值。

原因是少了时区,加&serverTimezone=UTC

jdbc:mysql://127.0.0.1:3306/my_test?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&serverTimezone=UTC

参考文章:https://www.cnblogs.com/flyingDragon/p/11268920.html

以上是关于mysqlspringboot启动报错Could not create connection to database server. Attempted reconnect 3 times. (代码片的主要内容,如果未能解决你的问题,请参考以下文章