I think there is an issue with the mismatch timezone with Mysql and system.
So its better to set the value to be in sync.
You can also refer the below link to set the time: How do I set the time zone of MySQL?
More Related Contents:
- Connect Java to a MySQL database
- MySQL JDBC Driver 5.1.33 – Time Zone Issue
- MySQLSyntaxErrorException near “?” when trying to execute PreparedStatement
- Using “like” wildcard in prepared statement
- Can we connect remote MySQL database in Android using JDBC? [closed]
- Android JDBC not working: ClassNotFoundException on driver
- java.sql.SQLException Parameter index out of range (1 > number of parameters, which is 0) [closed]
- MySQL and JDBC with rewriteBatchedStatements=true
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- JDBC MySql connection pooling practices to avoid exhausted connection pool
- Getting java.sql.SQLException: Operation not allowed after ResultSet closed
- Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client
- right syntax to use near ‘?’
- “Loading class com.mysql.jdbc.Driver … is deprecated” message
- Returning a ResultSet
- How to change MySQL timezone in a database connection using Java?
- How to configure Tomcat to connect with MySQL
- Java JDBC MySQL exception: “Operation not allowed after ResultSet closed”
- java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/dbname [duplicate]
- JDBC character encoding
- how to get list of Databases “Schema” names of MySql using java JDBC
- Access denied for user ‘root’@’localhost’
- Glassfish Admin Console throws java.lang.IllegalStateException when creating JDBC Pool
- No matter what, I can’t batch MySQL INSERT statements in Hibernate
- java.sql.SQLException: Before start of result set [duplicate]
- How to use prepared statement for select query in Java?
- Stumped SQL Exception for JDBC
- A datetime equivalent in java.sql ? (is there a java.sql.datetime ?)
- A persistent connection with JDBC to MySQL
- JDBC MySQL connection using Unix Socket