个人对于常用的
mysql sql问题分析和确定的方法的小结
set profiling=1
execute the sql sentence for test
show profiles
show profile cpu,block io,memory....for query n;
go aheard,no reason
time mysql -A tuan_opencm -e "select * from t_groupon_item" > t
good resource:http://dev.mysql.com/doc/refman/5.0/en/show-profiles.html
本文总结了一套实用的MySQL性能分析方法,通过启用 profiling 功能,执行 SQL 测试语句并展示如何使用 show profiles 和 show profile 命令来定位 CPU、磁盘 I/O 和内存消耗等问题。

被折叠的 条评论
为什么被折叠?



