MySQL查找SQL耗时瓶颈 SHOW profiles
来源:互联网 发布:otsu算法 opencv 编辑:程序博客网 时间:2024/05/21 18:48
1、首先查看是否开启profiling功能
SHOW VARIABLES LIKE '%pro%';
或者
SELECT @@profiling;
2、开启profiling
SET profiling=1;
3、执行sql语句
例如:
SELECT table_schema AS 'Db Name', ROUND( SUM( data_length + index_length ) / 1024 / 1024, 3 ) AS 'Db Size (MB)', ROUND( SUM( data_free ) / 1024 / 1024, 3 ) AS 'Free Space (MB)'FROM information_schema.tablesGROUP BY table_schema ;
4、查看结果
SHOW profiles;
SHOW profile ALL FOR QUERY 94;
94是查询ID号。
SHOW profiles语法:
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查找SQL耗时瓶颈 SHOW profiles
- MySQL查找SQL耗时瓶颈 SHOW profiles
- show profiles 分析sql耗时瓶颈
- MySQL分析SQL耗时瓶颈
- mysql show profiles 使用分析sql 性能
- mysql show profiles 使用分析sql 性能
- mysql show profiles使用分析sql性能
- mysql show profiles 使用分析sql 性能
- mysql show profiles 查看sql语句性能
- mysql show profiles 使用分析sql 性能
- MySQL Error :SHOW PROFILES
- MySQL Query Profiler 的使用 show profiles
- Mysql动态打开日志 show profiles详细信息
- MYSQL性能分析之show profiles
- MySQL性能分析语句 show profile/show profiles
- MySQL profiling 查找Query瓶颈
- mysql中的show profiles在5.6.14版本被丢弃
- mysql运维与分析-性能分析工具-show profiles
- linux初次使用切换为root用户
- 函数指针
- 如何分析命令行参数【转】
- 快速排序
- codeblocks 编译自动追加优化选项
- MySQL查找SQL耗时瓶颈 SHOW profiles
- ios平台静态库大小裁减
- 使用 JavaMail 发送电子邮件,适合多种电子邮箱地址充当发送者
- vs中怎么去链接一个库文件(ws2_32.lib)
- 合并iOS设备与模拟器库
- 四 应用层(三)DHCP协议
- 【C指针详解】自学笔记
- HDU-1166-敌兵布阵
- maven2不能下载jta-1.0.1B.jar的解决方法(手工安装):