Connection to @localhost failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

1、问题

 

 2、解决方案

把URL加上时区设置:

jdbc:mysql://localhost:3306?serverTimezone=GMT

 

posted @ 2020-04-10 17:36  Felix_9190  阅读(401)  评论(0编辑  收藏  举报