Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon
时区错误,MySQL默认的时区是UTC时区,比北京时间晚8
个小时。
所以要修改mysql的时长
在Navicat的对应数据库下,新建查询,输入:
set global time_zone='+8:00';
然后IDEA再使用Datebase连接,成功。
Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon
时区错误,MySQL默认的时区是UTC时区,比北京时间晚8
个小时。
所以要修改mysql的时长
在Navicat的对应数据库下,新建查询,输入:
set global time_zone='+8:00';
然后IDEA再使用Datebase连接,成功。