idea:Server returns invalid timezone Go to 'Advanced' tab and set 'serverTimezone' property manually

当你用IDEA连接MySQL数据库时,出现异常如下图: 原因: 服务器返回无效时区,转到“高级”选项卡并手动设置“serverTimezone”属性。 解决: 登录mysql,命令行窗口录入以下命令即可: show variables like ‘%time_zone%’; set global time_zone=’+8:00’; 解决后,测试连接即可解决!
相关文章
相关标签/搜索