Thank you Mark Rotteveel and Gord Thompson
I have the connection in an XML file, with &
and Europe/Amsterdam
finally works.
url="jdbc:mysql://127.0.0.1:3306/rk_tu_lager?useLegacyDatetimeCode=false&serverTimezone=Europe/Amsterdam&useSSL=false"
Thank you, you are great
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 ‘?’
- Running a .sql script using MySQL with JDBC
- “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’
- com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server [duplicate]
- Should a database connection stay open all the time or only be opened when needed?
- No matter what, I can’t batch MySQL INSERT statements in Hibernate
- How to use prepared statement for select query in Java?
- Converting mysql table to spark dataset is very slow compared to same from csv file
- How to connect to a remote MySQL database with Java?
- java.sql.SQLException: No database selected – why?