手机
当前位置:查字典教程网 >编程开发 >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复制的概述、安装、故障、技巧、工具(火丁分享)

MySQL rownumber SQL生成自增长序号使用介绍

mysql释放结果内存代码示例

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

mysql limit分页优化方法分享

MYSQL性能优化分享(分库分表)

mysql函数split功能实现

mysql Myisamchk小工具使用手册第1/2页

Mysql 建库建表技巧分享

精品推荐
分类导航