mysql性能分析 -- profile

使用profile对某sql的性能进行分析。使用大致分为四步: 打开分析:在mysql服务器中执行set profiling = 1;或者在my.cnf/my.ini中加上set profiling = 1; 注:在mysql 中一般数字’1’对应’ON’,数字’0’对应’OFF’。 执行各种语句 show profiles;查看记录的sql show profile [type] for que
相关文章
相关标签/搜索