# Full query
SELECT * from INFORMATION_SCHEMA.PROCESSLIST where db = 'database_name';
# Running MySQL queries
show [full] processlist;
# Detailed information
SELECT * FROM information_schema.PROCESSLIST p;
SELECT * FROM performance_schema.threads t;