MySQL Variables lc_time_names 数据库 参数变量解释及正确配置使用

本站中文解释

MySQL参数lc_time_names控制MySQL如何显示日期、时间和日历元素的本地化字符串。这个变量根据LC_TIME指令定义可用的日期、时间和日历本地化字符串以及服务器的地区设定而变化。

设置这个变量的常用方式是在MySQL的命令行终端上使用SET命令:

SET lc_time_names=’zh_CN’;

上面的命令将设置lc_time_names变量为中文(zh_CN)。你也可以根据你的机器上的地区设定来设备这个变量,使用类似下面这样的命令:

SET lc_time_names=LOCAL;

官方英文解释

lc_time_names

Command-Line Format --lc-time-names=value
System Variable lc_time_names
Scope Global, Session
Dynamic Yes
Type String

This variable specifies the locale that controls the language
used to display day and month names and abbreviations. This
variable affects the output from the
DATE_FORMAT(),
DAYNAME() and
MONTHNAME() functions. Locale
names are POSIX-style values such as
'ja_JP' or 'pt_BR'. The
default value is 'en_US' regardless of your
system’s locale setting. For further information, see
Section 10.16, “MySQL Server Locale Support”.


数据运维技术 » MySQL Variables lc_time_names 数据库 参数变量解释及正确配置使用