Server returns invalid timezone. Need to set 'serverTimezone' property

在idea中连接mysql时报错

含义:服务器返回无效时区。需要设置“serverTimezone”属性

 直接点 Set time zone进行设置

UTC改为GMT

注:

GMT(Greenwich Mean Time):格林威治标准时间
UTC:世界标准时间
CST(China Standard Time):中国标准时间

GMT + 8 = UTC + 8 = CST

原文地址:https://www.cnblogs.com/hebiao/p/13845319.html