mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”

前几天重装系统,把开发需要的所有工具重新装了一遍,完事儿就关电脑嗨皮了。
今天新建项目连库运行后报如下错误:
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
错误信息:
The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
其实这是安装mysql的时候时区设置的不正确,处理方式:
DOS登录数据库,执行下面两条命令:
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
第一条命令:show variables like ‘%time_zone%’;
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
第二条命令:set global time_zone=’+8:00’;
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
好了。
安装mysql时候默认的是美国的时区,而我们*要比他们迟8小时,采用+8:00格式