Mysql查看sql的执行时间
来源:互联网 发布:亚虎网络娱乐网页版 编辑:程序博客网 时间:2024/06/06 12:55
在mysql中我们可以通过以下的方法去了解sql执行的具体步骤以及之间,这可以为
1. 查看profiling的状态,1为开启,默认处于关闭状态
SELECT @@profiling;
2. 开启
SET profiling = 1;
3. 执行sql语句
4. 显示 profiles的信息,格式看着不爽的可以在后面加上\G
show profiles;
show profiles\G;
5. 具体查看某一次的就可以通过指定query_id的方式
show profile for query 2;
show profile block io,cpu for query 2;
0 0
- Mysql查看sql的执行时间
- 查看SQL语句的执行时间
- 查看SQL语句的执行时间
- 查看SQL语句的执行时间
- 查看SQL语句的执行时间
- 查看Sql语句的执行时间
- 查看SQL语句的执行时间
- 查看sql语句的执行时间
- 查看mysql连接数 sql语句执行时间
- MySQL 如何查看SQL 语句执行时间
- 查看sql语句执行时间
- 查看SQL执行时间
- 查看sql执行时间方式
- 查看SQL语句执行时间
- mysql语句执行时间查看
- mysql 如何查看sql语句执行时间和效率
- 查看SQL语句在SQL Server上的执行时间
- SQL Server如何查看SQL语句的执行时间 .
- python基于Hadoop Streaming实现简单的WordCount
- iOS 循环轮播框架,使用3个UIImageView实现
- LeetCode 413. Arithmetic Slices 题解(C++)
- Mysql主从模式的原理
- Linux中记录在线时长的uptime命令
- Mysql查看sql的执行时间
- 坐标的离散化
- Java利用Calendar获取一段时间内的日期
- mysql中数据库和表的导出
- 实现单链表的就地逆置
- Mysql ndbcluster
- Maven学习笔记(三)-Eclipse配置Maven
- Starting NFS daemon failed的错误解决
- Python 字典方法