MySQL 5.7 Parameter –log_timestamps

Source: Internet
Author: User

http://www.ttlsa.com/mysql/mysql-5-7-kengdieparam-log_timestamps/Website Quote:

This variable is 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.

In MySQL 5.7.2 added log_timestamps This parameter, this parameter is mainly control error log, genera log, and so on log display time parameter.
Changing the parameter to default UTC after 5.7.2 causes the log to be recorded in a slower time than the Chinese side, which makes it inconvenient to view the log. Modify to SYSTEM to solve the problem

12345678910111213141516 SHOW GLOBAL VARIABLES like ' log_timestamps '; +----------------+--------+ | variable_name | Value | +----------------+--------+ | log_timestamps | UTC | +----------------+--------+ SET GLOBAL log_timestamps = SYSTEM; Query OK, 0 rows affected (0.00 sec) SHOW GLOBAL VARIABLES like ' log_timestamps '; +----------------+--------+ | variable_name | Value | +----------------+--------+ | log_timestamps | SYSTEM | +----------------+--------+

MySQL 5.7 Parameter –log_timestamps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.