手机
当前位置:查字典教程网 >编程开发 >mysql数据库 >Mysql自带profiling性能分析工具使用分享
Mysql自带profiling性能分析工具使用分享
摘要:1.showvariableslike'%profiling%';(查看profiling信息)2.setprofiling=1;(开启pr...

1. show variables like '%profiling%';(查看profiling信息)

Mysql自带profiling性能分析工具使用分享1

2. set profiling=1;(开启profiling)

Mysql自带profiling性能分析工具使用分享2

3. 执行SQL查询 例:select goods_name from ecs_goods where goods_id <5000; show profiles;

Mysql自带profiling性能分析工具使用分享3 4. show profile for query 4;

Mysql自带profiling性能分析工具使用分享4

show profile 的格式如下:

SHOW PROFILE [type [, type] ... ] [FOR QUERY n] [LIMIT row_count [OFFSET offset]] type: ALL | BLOCK IO | CONTEXT SWITCHES | CPU | IPC | MEMORY | PAGE FAULTS | SOURCE | SWAPS

【Mysql自带profiling性能分析工具使用分享】相关文章:

mysql部分替换sql语句分享

mysql数据库KEY分区用法

mysql 查询表中平均分最低的班级

MySQL交叉表实现分享

mysql中合并两个字段的方法分享

mysql limit分页优化方法分享

mysql函数split功能实现

Centos5.5中安装Mysql5.5过程分享

深入Mysql字符集设置分析

在MySQL字段中使用逗号分隔符的方法分享

精品推荐
分类导航