The server time zone value 'CEST' is unrecognized

前端 未结 3 1703
忘了有多久
忘了有多久 2020-12-08 16:24

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 Europea

3条回答
  •  庸人自扰
    2020-12-08 17:09

    First see your mysql server timezone:
    mysql -e "SELECT @@global.time_zone;" -u -p.
    Most probably it should be SYSTEM.
    Find your system timezone: date +”%Z.
    See if its CEST.
    You need to change your system timezone:

    #cd /usr/share/zoneinfo
    #ls -l
    #rm /etc/localtime
    #ln -s /usr/share/zoneinfo/UTC /etc/localtime
    

    Then restart your mysql server: /etc/init.d/mysqld restart.

    Enjoy

提交回复
热议问题