mysql中的show profiles在5.6.14版本被丢弃
来源:互联网 发布:微店和淘宝哪个安全 编辑:程序博客网 时间:2024/05/01 07:04
mysql> status
————–
mysql Ver 14.14 Distrib 5.6.14, for Linux (x86_64) using EditLine wrapper
mysql> show variables like ‘%profil%’;
+————————+——-+
| Variable_name | Value |
+————————+——-+
| have_profiling | YES |
| profiling | OFF |
| profiling_history_size | 15 |
+————————+——-+
3 rows in set (0.00 sec)
该功能默认是关闭的
mysql> set profiling=1
-> ;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> show warnings\G
*************************** 1. row ***************************
Level: Warning
Code: 1287
Message: ‘SHOW PROFILE’ is deprecated and will be removed in a future release. Please use Performance Schema instead
1 row in set (0.00 sec)
mysql> select count(*) from openfire.ofUser;
mysql> show profile for query 2;
+———————-+———-+
| Status | Duration |
+———————-+———-+
| starting | 0.000046 |
| checking permissions | 0.000006 |
| Opening tables | 0.000017 |
| init | 0.000014 |
| System lock | 0.000009 |
| optimizing | 0.000006 |
| statistics | 0.000013 |
| preparing | 0.000011 |
| executing | 0.000003 |
| Sending data | 0.000049 |
| end | 0.000005 |
| query end | 0.000006 |
| closing tables | 0.000009 |
| freeing items | 0.000013 |
| logging slow query | 0.000069 |
| cleaning up | 0.000016 |
+———————-+———-+
16 rows in set, 1 warning (0.00 sec)
官方建议使用information_schema.profiling。原因是show profile 输出了查询执行的每个步骤及其花费的时间,但是结果很难快速确定哪个步骤花费的时间最多,因为输出是按照执行顺序排序的,而不是按花费的时间排序—-而时间上我们更关心的是花费了多少时间。
- mysql中的show profiles在5.6.14版本被丢弃
- MySQL Error :SHOW PROFILES
- MySQL Query Profiler 的使用 show profiles
- mysql show profiles 使用分析sql 性能
- MySQL查找SQL耗时瓶颈 SHOW profiles
- MySQL查找SQL耗时瓶颈 SHOW profiles
- mysql show profiles 使用分析sql 性能
- Mysql动态打开日志 show profiles详细信息
- mysql show profiles使用分析sql性能
- mysql show profiles 使用分析sql 性能
- mysql show profiles 查看sql语句性能
- mysql show profiles 使用分析sql 性能
- MYSQL性能分析之show profiles
- MySQL性能分析语句 show profile/show profiles
- ".show()" 方法莫丢弃
- mysql运维与分析-性能分析工具-show profiles
- MySQL中的Show命令
- mysql profiles
- oracle locks query
- MapReduce的input为SequenceFile的相关实验
- 如何获取客户端真实IP地址
- 更新了android sdk出现aapt问题以及模拟器启动错误
- [职场]14年辞旧迎新
- mysql中的show profiles在5.6.14版本被丢弃
- Split 获取字符串中指定符号分割的字符内容
- 论文写作之不二法则
- mysql中将ip转换为数值的函数
- oa数据库rman备份
- 使用adb命令连接模拟器,在5037端口未被占用情况下仍报端口错误
- some linux kernel parameters tune
- linux apche + resin重启后,网页依旧打不开的解决方案
- HEVC/H.265 study