mysql優化之性能監控(一)-------show profile命令

使用show profile查詢剖析工具 設定查看sql執行具體時間的命令:set profiling=1; 查看某一條或多條sql命令執行具體時間:show profiles; 查看sql整個執行過程每個階段的時間:show profile; 查看多條sql命令中某一條各階段執行時間:show profile for query n; 顯示所有的性能信息:show profile all for
相關文章
相關標籤/搜索