如何更改MySQL Server时区? [英] How to change MySQL Server time zone?

查看:84
本文介绍了如何更改MySQL Server时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在管理MySQL服务器.它安装在ubuntu服务器上.最近,我发现ubuntu服务器设置为错误的时区.我通过命令dpkg-reconfigure tzdate通过终端更正了该问题.现在,我希望MySQL Server适应此设置.这可能吗?

I am administrating a MySQL Server. It is installed on a ubuntu server. Recently I discovered, that the ubuntu server was set on a false timezone. I corrected that through terminal by the command dpkg-reconfigure tzdate. Now I want the MySQL Server to adapt this setting. Is this possible?

推荐答案

在您的/etc/mysql/mysql.conf或任何位置,请查看

In your /etc/mysql/mysql.conf or wherever it is, check out the default-time-zone

这篇关于如何更改MySQL Server时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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