MariaDB 在配置中设置时区 [英] MariaDB set timezone in config

查看:89
本文介绍了MariaDB 在配置中设置时区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 MariaDB 配置中设置服务器时区?

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,适用于普通 MySQL,无法被 MariaDB 识别.

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

推荐答案

default-time-zone (- 而不是 _):

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

[server]
default-time-zone=+00:00

这篇关于MariaDB 在配置中设置时区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆