1.show variables like 'slow_query_log' //查看以慢查日志开启状态
2.set global slow_query_log_file= '/home/zjs/sql.log'
3.set global log_queries_not_using_indexes=on;
4.set global long_query_time=1
1.show variables like 'slow_query_log' //查看以慢查日志开启状态
2.set global slow_query_log_file= '/home/zjs/sql.log'
3.set global log_queries_not_using_indexes=on;
4.set global long_query_time=1