MySQL JDBC Driver 5.1.33 - Time Zone Issue

前端 未结 30 1233
栀梦
栀梦 2020-11-22 05:22

Some background:

I have a Java 1.6 webapp running on Tomcat 7. The database is MySQL 5.5. Previously, I was using Mysql JDBC driver 5.1.23 to connect to the DB. Ever

30条回答
  •  难免孤独
    2020-11-22 06:08

    I have the same problem and i solved it append only "?serverTimezone=UTC" to my string connection.

    #

    sinossi my problem:

    java.sql.SQLException: The server time zone value 'CEST' 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.

    my dbDriver = com.mysql.jdbc.Driver
    
    my jar = mysql-connector-java-8.0.12.jar
    
    my java = 1.8
    
    my tomcat = Apache Tomcat Version 8.5.32
    
    my MySql server = MySql ver.8.0.12 
    

提交回复
热议问题