连接mysql报错 : The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone...

time zone 时区错误


DBEAVER连接MySQL运行报错The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone...


使用root用户登录mysql,执行以下语句

 show variables like '%time_zone%';

执行结果是这样的:

SYSTEM为SQL默认美国时间,而我们中国要比他们迟8小时

因此将时区设置为当前系统时区即可,所以采用+8:00格式

 接下来执行以下sql:

set global time_zone='+8:00';

最后确认一下,再执行一下第一条sql,是下图就ok了....

猜你喜欢

转载自www.cnblogs.com/zhengguangpan/p/10912100.html