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

使用root用户登录mysql,按照如下图所示操作即可
在这里插入图片描述
SYSTEM为SQL默认美国时间,而我们中国要比他们迟8小时

在这里插入图片描述
因此将时区设置为当前系统时区即可,

因此,采用+8:00格式
在这里插入图片描述

在这里插入图片描述
【注:如果设置完后没有出现更改后的情况,把窗口关了重新登陆,然后再输入命令(show variables like ‘%time_zone%’;)查看即可】

猜你喜欢

转载自blog.csdn.net/qq_37559253/article/details/89365212
今日推荐