MariaDB set timezone in config

user2562424 picture user2562424 · Oct 14, 2014 · Viewed 18k times · Source

How do I set the server timezone in the MariaDB configuration?

The only thing I can find in the documentation is using command-line flags, which I don't want to do.

default_time_zone, which works on vanilla MySQL, isn't recognized by MariaDB.

Answer

Gergo Erdosi picture Gergo Erdosi · Oct 14, 2014

It is default-time-zone (- instead of _):

[server]
default-time-zone=UTC