IDEA使用DataBase功能连接数据库时报错Connection to xxx failed

点击Test Connection(测试连接)会报错如下:

Connection to db_pms@localhost failed.[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.【连接到db_pms@localhost失败。[08001]无法创建到数据库服务器的连接。尝试重新连接3次放弃。】

解决办法:在URL加上?serverTimezone=GMT再点击Test Connection(测试连接)就可以了,如图:

?serverTimezone=GMT

发布了144 篇原创文章 · 获赞 25 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/AdminGuan/article/details/102974459