1、打开profile,默认是关闭的
>set profiling = 1
2、执行要分析的sql语句
>select * from user where name = 'aaa';
3、查看sql语句执行步骤
>show profiles
>show profile for query 2
时间: 2024-11-29 11:17:31
1、打开profile,默认是关闭的
>set profiling = 1
2、执行要分析的sql语句
>select * from user where name = 'aaa';
3、查看sql语句执行步骤
>show profiles
>show profile for query 2