Mysql show profile
1.show profile
1.1 show profile 首先随便介绍一下
1.1 这玩意是Mysql 自带的一种 query整段分析工具,从而分析出一条SQL的性能瓶颈
1.2 在默认的情况下这功能是没有开启的,因为要消耗性能呗
1.3 开启 profiling =1;
使sql执行时间显示到 0.00000xxxxxxxxx 反正好多位,
1.4 执行需要执行的SQL
1.5 执行 show profiles
- show profile Type 属性
- explain 回头在说把