You are here
General Query Log & Slow query log is not working
Thu, 2014-03-20 11:48 — kalasha
I have enabled the General Query Log and the Slow Query Log in MySQL 5.6.13 in windows server. File is created but sql statement are not capturing. This is production server now its not possible to restart.
Kindly help me to solve the issue.
mysql> show global variables like 'slow%'; +---------------------+----------------------------------------+ | Variable_name | Value | +---------------------+----------------------------------------+ | slow_launch_time | 2 | | slow_query_log | ON | | slow_query_log_file | F:/MySQL DataFiles/data/Slow_Query.log | +---------------------+----------------------------------------+ mysql> show global variables like 'general%'; +------------------+-------------------------------------+ | Variable_name | Value | +------------------+-------------------------------------+ | general_log | ON | | general_log_file | F:/MySQL DataFiles/data/General.log | +------------------+-------------------------------------+
Taxonomy upgrade extras:
FLUSH LOGS!
You might need to execute the SQL statement (FLUSH LOGS;) and then check the log files.
Hi,
What is the log output?
Try "show global variables like'log_output';"
Sir,
log_output = NONE
OK. Try to set
log_ouput
to table with: