1.show profiles;
2.show variables; 查看profiling 是否是on状态;
3.如果是off,则执行命令 set profiling=1;
4.执行SQL语句
5.show profiles; 就可以查询到SQL语句的执行时间
1.show profiles;
2.show variables; 查看profiling 是否是on状态;
3.如果是off,则执行命令 set profiling=1;
4.执行SQL语句
5.show profiles; 就可以查询到SQL语句的执行时间