詳細記錄sql執行時間的工具
開啓profile
配置項profiling完成:
- 開啓:set profiling = on
執行sql時會自動記錄
查看:show profiles
具體某條sql的詳細步驟時間
命令:show profile for query xx;
注意:如果sql查詢結果爲空,則不會有該條profile
詳細記錄sql執行時間的工具
配置項profiling完成:
查看:show profiles
命令:show profile for query xx;
注意:如果sql查詢結果爲空,則不會有該條profile