1.出现如图问题
2.解决方案:
安装mysql的时候时区设置的不正确。
代码修改:jdbc:mysql://localhost:3306/project1?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8
Idea连接数据库——Could not create connection to database server. Attempted reconnect 3 times. Giving up.
最新推荐文章于 2024-02-26 00:48:56 发布