相关参数:
system_time_zone:
1.取自操作系统时区
2.查看操作系统的时区命令: timedatectl, date -R
time_zone:
1、数据库会话时区参数
2、 值为system时,取system_time_zone值
3、可动态修改:
set global time_zone='+8:00'
4、永久添加/etc/my.cnf中 :default-time-zone = '+08:00'
lc_time_names :
日 与 月份的格式
log_timestamps
控制写入error.log ,general_log, slow_log文件的timestamp时区。对表mysql.general_log, mysql.slow_log的时区不生效。
默认允许值:UTC (the default) and SYSTEM (local system time zone )