mysql性能分析 -- profile

使用profile對某sql的性能進行分析。使用大致分爲四步: 打開分析:在mysql服務器中執行set profiling = 1;或者在my.cnf/my.ini中加上set profiling = 1; 注:在mysql 中一般數字’1’對應’ON’,數字’0’對應’OFF’。 執行各種語句 show profiles;查看記錄的sql show profile [type] for que
相關文章
相關標籤/搜索