关于产生The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zo...

连接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格式

set global time_zone='+8:00';

就可以啦^_^

原文:https://blog.csdn.net/Tai4lin/article/details/83504479

你可能感兴趣的:(关于产生The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zo...)