关联mysql失败_Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon'

关联mysql失败_Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezon’


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

所以要修改mysql的时长

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

set global time_zone=’+8:00’;

执行结果如下:


再次连接成功

原文链接:https://blog.csdn.net/weixin_43285123/article/details/101057110

原文地址:https://www.cnblogs.com/longronglang/p/12026582.html