idea关联MYSQL失败:Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon

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

在mysql的命令模式下,输入:

set global time_zone='+8:00';

再次连接成功

参考文章:https://www.cnblogs.com/sunchunmei/p/11426758.html

posted @ 2020-04-19 22:29  杵臼  阅读(358)  评论(0编辑  收藏  举报