您的位置: 首页 > 文章 > 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 分类: 文章 • 2023-11-27 14:19:22 文章目录 一、错误情况 二、错误原因 三、解决方法 四、再次连接测试 一、错误情况 二、错误原因 MySQL未正确设置时区。 三、解决方法 (一)进入MySQL根目录命令行 (二)登录数据库 (三)输入set global time_zone='+8:00'; 四、再次连接测试 再次连接数据库即可成功。