mysql show profiles 使用分析sql 性能

Show profiles是5.0.37之后添加的,要想使用此功能,要确保版本在5.0.37之后

在命令行中执行:select version();

查看MySQL profile是否开启
use test(使用数据库)
show profiles;
如果show profiles 为空,则没有开启profile。
set profling=1;开启使用这个SQL。

mysql 学习知识
http://ourmysql.com/archives/1435