PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.3Kb
Man Pages (Zip) - 402.5Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0
- 7.4.2.1 Error Log Configuration
- 7.4.2.2 Default Error Log Destination Configuration
- 7.4.2.3 Error Event Fields
- 7.4.2.4 Types of Error Log Filtering
- 7.4.2.5 Priority-Based Error Log Filtering (log_filter_internal)
- 7.4.2.6 Rule-Based Error Log Filtering (log_filter_dragnet)
- 7.4.2.7 Error Logging in JSON Format
- 7.4.2.8 Error Logging to the System Log
- 7.4.2.9 Error Log Output Format
- 7.4.2.10 Error Log File Flushing and Renaming
This section discusses how to configure the MySQL server for logging of diagnostic messages to the error log. For information about selecting the error message character set and language, seeSection 12.6, “Error Message Character Set”, andSection 12.12, “Setting the Error Message Language”.
The error log contains a record ofmysqld startup and shutdown times. It also contains diagnostic messages such as errors, warnings, and notes that occur during server startup and shutdown, and while the server is running. For example, ifmysqld notices that a table needs to be automatically checked or repaired, it writes a message to the error log.
Depending on error log configuration, error messages may also populate the Performance Schemaerror_log table, to provide an SQL interface to the log and enable its contents to be queried. SeeSection 29.12.21.2, “The error_log Table”.
On some operating systems, the error log contains a stack trace ifmysqld exits abnormally. The trace can be used to determine wheremysqld exited. SeeSection 7.9, “Debugging MySQL”.
If used to startmysqld,mysqld_safe may write messages to the error log. For example, whenmysqld_safe notices abnormalmysqld exits, it restartsmysqld and writes amysqld restarted message to the error log.
The following sections discuss aspects of configuring error logging.
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.3Kb
Man Pages (Zip) - 402.5Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0