Mysql慢查詢(一)

1.如果做MySQL優化? 2.慢查詢的一些常用命令 (1)show variables like ‘slow_query_log’; 是否打開慢查詢日誌的功能 (2)set global slow_query_log_file = ‘慢查詢日誌的存放位置’; (3)set global log_queries_not_using_indexes = on;沒有使用索引的查詢也記錄在慢查詢中。 (
相關文章
相關標籤/搜索