MySQL JDBC Driver 5.1.33 - Time Zone Issue

前端 未结 30 1191
栀梦
栀梦 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 06:07

    If you are using Maven, you can just set another MySQL connector version (I had the same error, so i changed from 6.0.2 to 5.1.39) in pom.xml:

    
        mysql
        mysql-connector-java
        5.1.39
    
    

    As reported in another answers, this issue has been fixed in versions 6.0.3 or above, so you can use the updated version:

    
        mysql
        mysql-connector-java
        6.0.3
    
    

    Maven will automatically re-build your project after you save the pom.xml file.

提交回复
热议问题