Query 'SHOW PROCESSLIST'

SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST;

gives the same info (in recent MySqls) and can be filtered;