连接mysql报错 : The server time zone value 'Öйú±ê×¼Ê&#

Posted zhengguangpan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了连接mysql报错 : The server time zone value 'Öйú±ê×¼Ê&#相关的知识,希望对你有一定的参考价值。

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

技术图片

以上是关于连接mysql报错 : The server time zone value 'Öйú±ê×¼Ê&#的主要内容,如果未能解决你的问题,请参考以下文章

连接mysql报错 : The server time zone value 'Öйú±ê×¼Ê&#

连接mysql报错:Communications link failure The last packet successfully received from the server was 3,5

eclipse:项目启动MySQL报错:The last packet successfully received from the server was x milliseconds ago

连接mysql报错java.sql.SQLException: The server time zone value '?й???????' is unrecognized...解决方

连接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.