show processlis
1 mysql> desc information_schema.p rocesslist ; 2 +------------ ---+------ ---------- -----+---- --+-----+- --------+- ------+ 3 | Field | Type | Null | Key | Default | Extra | 4 +------------ ---+------ ---------- -----+---- --+-----+- --------+- ------+ 5 | ID | bigint(4) | NO | | 0 | | 6 | USER | varchar(16) | NO | | | | 7 | HOST | varchar(64) | NO | | | | 8 | DB | varchar(64) | YES | | NULL | | 9 | COMMAND | varchar(16) | NO | | | | 10 | TIME | int(7) | NO | | 0 | | 11 | STATE | varchar(64) | YES | | NULL | | 12 | INFO | longtext | YES | | NULL | | 13 | TIME_MS | bigint(21) | NO | | 0 | | 14 | ROWS_SENT | bigint(21) unsigned | NO | | 0 | | 15 | ROWS_EXAMI NED | bigint(21) unsigned | NO | | 0 | | 16 | ROWS_READ | bigint(21) unsigned | NO | | 0 | | 17 +------------ ---+------ ---------- -----+---- --+-----+- --------+- ------+ 18 12 rows in set (0.00 sec) 19 20 mysql>select * from informatio n_schema.p rocesslist where db = <db_name>;
posted by
akanuma
on Fri 20 Sep 2013
at 11:35