1.清空查询缓存:
reset query cache;
2.查看服务器参数配置信息
show variables like "";
3.开启profiling记录
set profiling = ON;
4.show profiles;
查看服务器查询sql语句记录
5.查看分析sql语句的整个运行过程所占的时间分配
show profile for query xx(query_id);
1.清空查询缓存:
reset query cache;
2.查看服务器参数配置信息
show variables like "";
3.开启profiling记录
set profiling = ON;
4.show profiles;
查看服务器查询sql语句记录
5.查看分析sql语句的整个运行过程所占的时间分配
show profile for query xx(query_id);