select @@have_profiling;#查看是否支持查询的分析。 set profiling =1;#开启 show profiles;#查看所有的查询语录 show profile for query id号;#查看具体的查询消耗