MySQL JDBC Driver 5.1.33 - Time Zone Issue

前端 未结 30 1244
栀梦
栀梦 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 05:41

    Run below query to mysql DB to resolve the error

    MariaDB [xxx> SET @@global.time_zone = '+00:00';
    Query OK, 0 rows affected (0.062 sec)
    
    MariaDB [xxx]> SET @@session.time_zone = '+00:00';
    Query OK, 0 rows affected (0.000 sec)
    
    MariaDB [xxx]> SELECT @@global.time_zone, @@session.time_zone;
    

提交回复
热议问题