Home >Database >Mysql Tutorial >Why is Hibernate Failing to Connect to MySQL Due to an Unrecognized \'AEST\' Time Zone?
The Server Time Zone Value 'AEST' is Unrecognized
This error message indicates that Hibernate is unable to establish a connection to the MySQL database due to an unrecognized time zone value. The time zone value 'AEST' is either not recognized by the MySQL server or it represents more than one time zone.
Possible Solutions:
To resolve this issue, you can do the following:
Configure the MySQL Server:
Configure the JDBC Driver:
If you are unable to modify the server configuration, you can configure the JDBC driver to use a specific time zone value. Add the serverTimezone parameter to your JDBC connection URL:
jdbc:mysql://localhost:3306/parking_hib?useLegacyDatetimeCode=false&serverTimezone=Australia/Melbourne
Replace 'Australia/Melbourne' with the desired time zone value.
Additional Tips:
The above is the detailed content of Why is Hibernate Failing to Connect to MySQL Due to an Unrecognized \'AEST\' Time Zone?. For more information, please follow other related articles on the PHP Chinese website!