Log Changes with MySQL 5.7_MySQL
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.
上一篇: MySQL在Mac下初始化密码操作详解
下一篇: apache出现500错误的原因是什么
推荐阅读
-
log引起的mysql不能启动的解决方法
-
MySQL slow_log表无法修改成innodb引擎详解
-
MySQL的日志(二):事务日志(redo log和undo log)
-
MySQL:Unsafe statement written to the binary log using statement format since BI
-
MySQL Error Log 中IO能力不足的警告分析
-
Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 by
-
log引起的mysql不能启动的解决方法
-
MySQL:Unsafe statement written to the binary log using statement format since BI
-
mysql 开发进阶篇系列 20 MySQL Server(innodb_lock_wait_timeout,innodb_support_xa,innodb _log_*)
-
mysql将bin-log日志文件转为sql文件的方法