::fixture-ready:: $ mysql -e "show processlist;" Id User Host db Command Time State Info 17 app 10.0.0.12 shop Query 91 Sending data select * from orders 18 app 10.0.0.13 shop Sleep 20 NULL 22 report 10.0.0.30 analytics Query 680 Copying to tmp table select customer_id ::exit-code::0 $ mysql -e "select id,user,host,db,command,time,state,left(info,80) as info from information_schema.processlist where command <> 'Sleep' order by time desc limit 10;" id user host db command time state info 22 report 10.0.0.30 analytics Query 680 Copying to tmp table select customer_id, sum(total) from orders 17 app 10.0.0.12 shop Query 91 Sending data select * from orders join order_items ::exit-code::0 $ mysql -e "select command, count(*) from information_schema.processlist group by command;" command count(*) Query 2 Sleep 1 ::exit-code::0