在my.ini中修改参数
log-output=NONE
general-log=0
general_log_file="FZQ-PC.log"
slow-query-log=0
slow_query_log_file="FZQ-PC-slow.log"
long_query_time=10
把上面的参数修改为
log-output=FILE
general-log=1
general_log_file="YANG.log"
log_queries_not_using_indexes=1
slow-query-log=1
slow_query_log_file="YANG-slow.log"
long_query_time=1