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.的解决方法.
如果你的MySql没有配置环境变量的话可以先配置环境变量
计算机(我的电脑)----右键----属性----高级系统设置----环境变量
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
复制你的MySql的bin目录的路径,例如:E:\develop\MySql\bin
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
打开黑窗口
输入命令:mysql -uroot -p123456
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
输入命令:show variables like ‘%time_zone%’;
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
输入命令:set global time_zone=’+8:00’;
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
如果是SpringBoot中运行报错的:

Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_91]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_91]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_91]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_91]
	at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:85) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	at com.mysql.cj.util.TimeUtil.getCanonicalTimezone(TimeUtil.java:132) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	at com.mysql.cj.protocol.a.NativeProtocol.configureTimezone(NativeProtocol.java:2234) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	at com.mysql.cj.protocol.a.NativeProtocol.initServerSession(NativeProtocol.java:2258) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	at com.mysql.cj.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:1319) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:966) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:825) ~[mysql-connector-java-8.0.13.jar:8.0.13]
	... 90 common frames omitted

可以将数据库中的连接信息:
spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8修改为:
spring.datasource.url=jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8 也可.