Server returns invalid timezone. Go to Advanced tab and set servertimezone property manually

谁都会走 提交于 2020-05-07 10:40:57

问题


My Intelij IDE wont connect to my database server of MySQL Workbench, it specifies it as a timezone problem and wants me to go to advanced tab and set serverTimezone property manually.

I tried looking if there where a similar problem but i cant seem to find it.


回答1:


In the Database tool window, right click on the data source, choose Properties (Shift+Enter), click on the Advanced tab.

Set the serverTimezone property to UTC.

See also the corresponding documentation page.




回答2:


@CrazyCoder is correct but here is a more details answer:

In DataGrip right click on your database drop down menu click on Properties then go to Advanced and slowly look for severTimeZone as in this attachement below:

Don't forget to click on apply and test again it should work.

Done.




回答3:


I had same problem. Running

SET GLOBAL time_zone = '+8:00';

on MySql command line solved the problem!



来源:https://stackoverflow.com/questions/57665645/server-returns-invalid-timezone-go-to-advanced-tab-and-set-servertimezone-prope

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!