mysql open slow query record

  1. my.cnf
  2. [mysqlld]  
  3. long_query_time=2  
  4.   
  5. #5.0, 5.1 and other versions configure the following options  
  6. log-slow-queries="mysql_slow_query.log"  
  7. #5.5 and above configure the following options  
  8. slow-query-log=On  
  9. slow_query_log_file="mysql_slow_query.log"  
  10.   
  11. log-query-not-using-indexes  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326232379&siteId=291194637