idea连接MySQL数据库报时区问题:

Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.

解决办法:

Idea连接MySQL报时区问题

 

 

 登录MySQL,设置时区:

set global time_zone='+8:00';

这是因为MySQL默认的时区是UTC时区,比北京时间晚8个小时。

相关文章: