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

前端 未结 4 1686
夕颜
夕颜 2020-12-24 10:07

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 propert

相关标签:
4条回答
  • 2020-12-24 10:45

    I had same problem. Running

    SET GLOBAL time_zone = '+8:00';

    on MySql command line solved the problem!

    0 讨论(0)
  • 2020-12-24 10:46

    @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.

    0 讨论(0)
  • 2020-12-24 10:55

    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.

    0 讨论(0)
  • 2020-12-24 10:57

    You can follow the picture find the configuration , Set Time zone = UTC

    0 讨论(0)
提交回复
热议问题