mysql 部分參數說明

log_timestamps [5.7]

This variable was added in MySQL 5.7.2. Before 5.7.2, timestamps in log messages were written using the local system time zone by default, not UTC. If you want the previous log message time zone default, set log_timestamps=SYSTEM.mysql

log_timestamps 這個參數主要是控制 error log、slow_log、genera log,等等記錄日誌的顯示時間參數,5.7.2以前的版本都是默認的 本地系統時間【local system time zone】,從5.7.2版本開始,默認爲utc 時間,固然能夠更改成本地系統時間,建意最好更改配置文件  [mysqld] log_timestamps = systemsql

相關文章
相關標籤/搜索