问题
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.
回答1:
It is default-time-zone (- instead of _):
[server]
default-time-zone=UTC
回答2:
Pasi had the right idea. 'UTC' didn't work but '+00:00' did.
来源:https://stackoverflow.com/questions/26349714/mariadb-set-timezone-in-config