6.7 使用show profile 进行sql分析

1. 查看是否开启html show variables like 'profiling'; 2. 开启功能java set profiling = on 3. 运行sqlsql #写的尽可能耗时的sql,利于分析 select * from xxx group by id%20 order by 5; #show profile 会记录这条sql 4. 查询结果post show profile
相关文章
相关标签/搜索