I am using hibernate (Hibernate Maven 5.2.15.Final, Mysql-connector Maven 8.0.9-rc) whith mysql 5.7 on lampp environment on linux so.
I am in Italy (Central European Summer Time) and once March 25, occurs follow error on connection db:
The server time zone value 'CEST' 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.
On mysql console, I ran:
SHOW GLOBAL VARIABLES LIKE 'time_zone';
SET GLOBAL time_zone='Europe/Rome';
but that did not persist.
Then I added to my.cnf
file (in /etc/mysql):
[mysqld]
default-time-zone = 'Europe/Rome'
and also:
default_time_zone = 'Europe/Rome'
but the db server did not start still...
Why does the error occur? Could someone help me?
Thank you!