mysql 时区异常The server time zone value '?й???????' is unrecognized or represents more than one tim

Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value '?й???????' is unrecognized or represents more than one tim
e 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 uti
lize time zone support.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_31]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_31]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_31]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[?:1.8.0_31]
        at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:54) ~[mysql-connector-java-6.0.6.jar!/:6.0.6]
        at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73) ~[mysql-connector-java-6.0.6.jar!/:6.0.6]
        at com.mysql.cj.jdbc.util.TimeUtil.getCanonicalTimezone(TimeUtil.java:118) ~[mysql-connector-java-6.0.6.jar!/:6.0.6]
        at com.mysql.cj.mysqla.MysqlaSession.configureTimezone(MysqlaSession.java:293) ~[mysql-connector-java-6.0.6.jar!/:6.0.6]
        at com.mysql.cj.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:2399) ~[mysql-connector-java-6.0.6.jar!/:6.0.6]
        at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:1642) ~[mysql-connector-java-6.0.6.jar!/:6.0.6]
        ... 214 more
2018-07-14 21:43:34,376 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[QueryDatabaseAuthenticationHandler]: [SQL exception while executi
ng query for wg / Could not get JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. At
tempted reconnect 3 times. Giving up.]>
2018-07-14 21:43:34,377 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - not find authentication handler that supports [wg] of type [UsernamePasswordCredential].>
2018-07-14 21:43:34,379 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] -

 

可以重新设置时区

SET GLOBAL time_zone ='+8:00';

SET time_zone = '+8:00';
FLUSH PRIVILEGES;

你可能感兴趣的:(mysql)