Site icon Database Tutorials

Where is MySQL Error Log File

In Mysql servers, the following methods can be used to find where the error log file is.

Find where the Error Log is with SELECT

We can find where the error log file is with the “SELECT @@log_error;” command.

Find where the Error Log is with mysql daemon parameter

When the mysql service is started, it will start to work with some parameters defined. One of the mysql daemon parameters “-log-error” parameter indicates the location and name of the error file.

Exit mobile version