Mysql查看sql的执行时间,以及查看sql有没有用索引

show variables where Variable_name = ‘profiling’; 查看profiling是否为on的状态,一般都是off。 如果是off,set profiling = 1; 再次查看,执行show variables where Variable_name = ‘profiling’; 这时发现状态变为了on。 然后执行要查看的sql 关于查看mysql的sql
相关文章
相关标签/搜索