MYSQL 查询sql语句各个阶段的消耗时间

一.profileshtml 适用于mysql5.5之前的版本,用来查询语句在各个阶段的消耗mysql 打开设置sql mysql> set profiling =1;数据库 任意使用一条查询语句安全 mysql> select count(*) from lg_student_production;架构 每一条语句都会生成一条queryId性能 mysql> show profiles;spa
相关文章
相关标签/搜索