slow_query_log
and slow_query_log_file
system variables. Set slow_query_log
to 0 (or OFF
) to disable the log or to 1 (or ON
) to enable it. Set slow_query_log_file
to specify the name of the log file. If a log file already is open, it is closed and the new file is opened.Set long_query_time to specify the seconds。设置完成后,你可以通过select @@slow_query_log来确认是否设置成功。
没有评论:
发表评论