mysql5.5以上開啓慢查詢

在my.ini配置文件中添加: [mysqld] #開啓慢查詢 slow_query_log = on #慢查詢時間 long_query_time = 0.5 #記錄沒有使用索引的查詢 log_queries_not_using_indexes = on #慢查詢日誌文件路徑 slow_query_log_file = D:/amp/mysql56/data/slow.log     轉載於:
相關文章
相關標籤/搜索