DataGrip软件Mysql连接失败Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' pr

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

DataGrip软件Mysql连接失败Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' pr

 

 

很显然,翻译成中文就是时区错误,MySQL默认的时区是UTC时区,比北京时间晚8个小时。

在mysql的命令模式下,输入:

set global time_zone='+8:00';

DataGrip软件Mysql连接失败Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' pr

再次连接

DataGrip软件Mysql连接失败Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' pr