其他分享
首页 > 其他分享> > Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' p

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

作者:互联网

IDEA关联MySQL报错:

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

原因:

时区错误,MySQL默认的时区是UTC时区,比北京时间晚8个小时。

解决方案:

在mysql的命令模式下输入:

set global time_zone=’+8:00’;

再次测试即可成功。

标签:set,manually,serverTimezone,invalid,tab,MySQL,timezone
来源: https://blog.csdn.net/cold___play/article/details/100861707