当前位置:Gxlcms > 数据库问题 > 连接mysql报错 : The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone...

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

时间:2021-07-01 10:21:17 帮助过:24人阅读


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

技术图片

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

标签:The   中国   roo   eth   lob   第一条   rac   serve   用户   

人气教程排行