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

问题描述: intellij idea连接mysql数据库时报错:Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezon’ 问题分析 该错误为时区错误,MySQL默认的时区是UTC时区,比北京时间晚8个小时。 解决 1、解决方法是在连接字符串后加?serverTimezone=Asia/Shangha
相关文章
相关标签/搜索