--实时获取执行慢的sql
select id,`user`,`host`,DB,command,`time`,state,info from information_schema.PROCESSLIST where TIME>=10;
本文提供了一个SQL查询示例,用于从information_schema.PROCESSLIST中筛选执行时间超过10秒的慢SQL语句。
--实时获取执行慢的sql
select id,`user`,`host`,DB,command,`time`,state,info from information_schema.PROCESSLIST where TIME>=10;

被折叠的 条评论
为什么被折叠?