| 您的当前位置:首页 --> MYSQL教程 |
| Mysql自带profiling性能分析工具使用分享 |
| 浏览次数:1160 关键词 ( ) |
|
1. show variables like '%profiling%';(查看profiling信息)
![]() 2. set profiling=1;(开启profiling)
![]() 3. 执行SQL查询
例:select goods_name from ecs_goods where goods_id <5000;
show profiles;
![]() 4. show profile for query 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
|
| 下载次数:0 |
| 下载地址:点击下载 |
| 本资源为程序自动采集,如有侵权请联系我们移除 admin#80vps.com 来信请将#替换为@ |
| 下一条 SQL计算timestamp的差值的方法 上一条 mysql多个TimeStamp设置的方法解读 |