Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 744
Puchkii Avatar asked Aug 26 '19 22:08

Puchkii


3 Answers

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.

Advanced

like image 60
CrazyCoder Avatar answered Nov 07 '22 19:11

CrazyCoder


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

enter image description here

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

Done.

like image 16
Dung Avatar answered Nov 07 '22 20:11

Dung


I had same problem. Running

SET GLOBAL time_zone = '+8:00';

on MySql command line solved the problem!

like image 7
Seymur Mammadli Avatar answered Nov 07 '22 19:11

Seymur Mammadli