MySQL 8.0 : Error Logging Here I would like to explain, How MySQL 8.0 server can be configured to log diagnosis messages inside the error log file. Generally, the error log contains: A record for mysqld service startup and shutdown. Diagnostic messages such as errors, warnings, and notes during mysqld server startup, running or shut down. A stack trace if mysqld exits abnormally. mysqld_safe writes once it finds mysqld exists abnormally and mysqld_safe invoke/start mysqld . Error Log Component Configuration MySQL 8.0 uses the MySQL error log component architecture that performs log event filtering and writing . These error log components can be configured using the system variable to achieve the desired logging results inside the error log file. We have mainly two types of error log components: filter & sink . Error Log Filter Components ---> Filter components, mainly process log events, to add, delete or modify event fields or to delete