MySQL: setting time_zone in my.cnf options file

后端 未结 6 2111
遥遥无期
遥遥无期 2020-12-17 15:03

In MySQL you can set a session variable called time_zone to change the timezone. This is useful e.g. when looking at timestamps from another country. Here i

6条回答
  •  既然无缘
    2020-12-17 15:31

    For MAMP, I added default_time_zone=-03:00 under [mysqld] in /Applications/MAMP/conf/my.cnf

    I would get the following error for Brazil/East, probably because its deprecated(https://en.wikipedia.org/wiki/List_of_tz_database_time_zones):

    [ERROR] Fatal error: Illegal or unknown default time zone 'Brazil/East'

提交回复
热议问题