时间:2021-07-01 10:21:17 帮助过:32人阅读
As of 5.7.2, we have gained the ability to control the verbosity of error messages withlog_error_verbosity
. This system variable controls verbosity in writing error, warning, and note messages to the error log. A value of 1 provides errors only, 2 adds warnings, and 3 adds notes. The default value is 3. And with that with level 3, aborted connections and access-denied errors for new connection attempts are written to the error log.
The good ol’log_warnings
is being deprecated in favor of the added flexibility fromlog_error_verbosity
.
And with MySQL 5.7.2, thelog_timestamps
system variable lets you set the timestamp time zone of messages written to the error log, the general query log, and slow query log files. The choices are UTC (the default) and SYSTEM (local system time zone). Previously messages use the local system time zone.
Please note that as of MySQL 5.7.2, the ID included in error log messages is that of the thread within mysqld responsible for writing the message. This indicates which part of the server produced the message, and is consistent with general query log and slow query log messages, which include the connection thread ID. Earlier releases use the ID of the mysqld process in error log message.