SpringBoot project MYSQL connection time zone issue

When the project start SpringBoot given: java.sql.SQLException: 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. The reason is MYSQL zone is not configured correctly.
Open MYSQL configuration file my.cnfor my.iniin [mysqld]block additional time zone configuration:

[mysqld]
default-time_zone='+8:00'

MYSQL and then restart the service.

Guess you like

Origin blog.51cto.com/xvjunjie/2401982