Database JDBC and Timezone

5 visualizaciones (últimos 30 días)
Wayne Choi
Wayne Choi el 10 de Feb. de 2020
Comentada: Wayne Choi el 13 de Jul. de 2020
I have encountered this problem while I am trying to connect to the database MySQL. My JDBC driver is mysql-connector-java-8.0.19.jar and I cannot configure ,jar file.
JDBC Driver Error: The server time zone value 'Mitteleurop�ische Zeit' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specifc time zone value if you want to utilize time zone support.
May i know if there is any solution by setting up some command lines in Matlab to fix this problem instead of changing the content in .jar file and database? Thank you.

Respuestas (1)

Jemima Pulipati
Jemima Pulipati el 10 de Jul. de 2020
MySQL Driver 8.x has a backward incompatibility which requires the server to be configured with a time-zone which can be recognized correctly. 
Database Toolbox is not responsible for this behavior, instead it is the MySQL Driver which enforces this behavior causing issues. It would be best to check with the database administrator to find out the ServerTimeZone to provide as part of your database URL/ configure the server accordingly.
Alternatively, try Connector J Version 5.1 as this should also work with MySQL 8.0 Server:
  1 comentario
Wayne Choi
Wayne Choi el 13 de Jul. de 2020
Connect J V5.1 solves my problem. Thank you.

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by