Log in to MySQL terminal log file path mysql> show variables like ' general_log_file '; +------------------+------ ------------------------------+| variable_name | value |+------------------+----------------------------------- -+| general_log_file | /usr/local/mysql/data/localhost.log |+------------------+---------- --------------------------+1 row in set (0.00 sec) error log file path mysql> show variables like ' log_error '; +---------------+------------------------------------+| variable_ name | value |+------------ ---+------------------------------------+| log_error | /usr/local/mysql/data/localhost.err | +---------------+------------------------------------+1 row in set (0.00 sec) Slow query log file path mysql> show variables like ' slow_query_log_file '; +---------------------+------ -----------------------------------+| variable_name | value |+------ ---------------+-----------------------------------------+| slow_query_log_file | /usr/local/ mysql/data/localhost-slow.log |+---------------------+-----------------------------------------+1 row in set (0.01 SEC)
Where is the MySQL log file?