show profiles 分析sql耗时瓶颈

查看是否开启 profiling 功能 show variables like '%profiling%'; 或者mysql select @@profiling; 开启profiling功能 set profiling=on; 执行须要分析的SQL语句 查看结果sql mysql> show profiles; -- 列出全部的分析结果 +----------+------------+---
相关文章
相关标签/搜索