一、错误情况

IDEA连接MySQL失败:Server returns invalid timezone. Go to Advanced tab and set serverTimezon

二、错误原因

MySQL未正确设置时区。

三、解决方法

(一)进入MySQL根目录命令行

IDEA连接MySQL失败:Server returns invalid timezone. Go to Advanced tab and set serverTimezon

(二)登录数据库

IDEA连接MySQL失败:Server returns invalid timezone. Go to Advanced tab and set serverTimezon

(三)输入set global time_zone='+8:00';

IDEA连接MySQL失败:Server returns invalid timezone. Go to Advanced tab and set serverTimezon

四、再次连接测试

再次连接数据库即可成功。

IDEA连接MySQL失败:Server returns invalid timezone. Go to Advanced tab and set serverTimezon

相关文章:

  • 2021-07-06
  • 2021-09-17
  • 2021-07-04
猜你喜欢
  • 2021-04-14
  • 2021-09-25
  • 2021-06-01
  • 2021-12-08
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案