access_time 4 months ago languageEnglish
more_vert

MySQL: The server time zone value 'AEDT' is unrecognized or represents more than one time zone

visibility 86 comment 0

Issue context

When connecting to MySQL using JDBC driver, the following error is encountered:

Underlying cause: java.sql.SQLException : The server time zone value 'AEDT' 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 specific time zone value if you want to utilize time zone support.

AEDT is Australian Eastern Daylight Time (AEDT).

Resolution

This error can be avoided by adding serverTimezone=UTC in the connection string to ignore the server time zone in client side as the error message itself suggests.

Thus, we can update JDBC connection string:

jdbc:mysql://localhost/hive_metastore?serverTimezone=UTC
info Last modified by Raymond 4 months ago copyright This page is subject to Site terms.
Like this article?
Share on

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

Follow Kontext

Get our latest updates on LinkedIn or Twitter.

Want to contribute on Kontext to help others?

Learn more

More from Kontext

visibility 33
thumb_up 0
access_time 4 months ago
visibility 25
thumb_up 0
access_time 4 months ago