idea链接mysql报错
Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
原因:
时区错误,MySQL默认的时区是UTC时区,比北京时间晚8个小时。
解决方案:
在mysql的命令模式下输入:
show variables like ‘%time_zone%’;
set global time_zone=’+8:00’;
再次测试即可成功