show running / non sleeping queries
only this query is shown
SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE state = "executing" ORDER BY State DESC
5.7.15-log - MySQL Community Server
Are you sure there are other running queries in that time? The query seems perfectly okay to list executing queries...
i'm almost sure because there's usualy 5-40 queries running
Fixed filtering for active processes
There are dozen of process states when executing the query, we can't
filter just for one of them. Let's rather exclude those without state
and are idling.
See also http://dev.mysql.com/doc/refman/5.7/en/general-thread-states.html
Signed-off-by: Michal Čihař <firstname.lastname@example.org>