MySQL JDBC Driver 5.1.33 - Time Zone Issue

前端 未结 30 1225
栀梦
栀梦 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:06

    I executed following on my database side.

    mysql> SET @@global.time_zone = '+00:00';
    
    mysql> SET @@session.time_zone = '+00:00';
    
    mysql> SELECT @@global.time_zone, @@session.time_zone;
    

    I am using Server version: 8.0.17 - MySQL Community Server - GPL

    source: https://community.oracle.com/thread/4144569?start=0&tstart=0

提交回复
热议问题