MariaDB set timezone in config

▼魔方 西西 提交于 2019-12-23 09:36:32

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!