环境:

  • win10
  • idea
  • mysql 5.7

错误信息:

Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezon’

问题:

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

  • 解决1:降低MySQL驱动版本

idea连接mysql 5.7时区错误解决

  • 解决2:设置时区
    idea连接mysql 5.7时区错误解决
    idea连接mysql 5.7时区错误解决

相关文章: