Item slow query performance analysis


The slow query #MySQL
SHOW the VARIABLES the LIKE 'slow_query_log';
# modify slow query status
#set global slow_query_log = 'ON';

# Do not use indexes queries whether to open the
SHOW VARIABLES LIKE 'log_queries_not_using_indexes';


# Slow query time
SHOW the VARIABLES the LIKE 'long_query_time';
# slow modified query time
#set global long_query_time = 1;


Article Number # slow query
SHOW the STATUS the LIKE 'Slow_queries';
# sql query slow recording position
SHOW the VARIABLES the LIKE 'slow_query_log_file';
# modify slow query position
#set global slow_query_log_file = 'E: /test_1116.log ';

Guess you like

Origin www.cnblogs.com/wookong/p/10562916.html