5.1 Feature: Process list table
« previous entry | next entry »
Mar. 15th, 2006 | 01:12 pm
I was asked about features in 5.1 this morning and one popped out that one of Elliot's new developers completed, which is the "PROCESSLIST" table.
As an example:
mysql> select * from PROCESSLIST WHERE command="query";
+----+------+------+-------------------- +---------+------+----------- +--------------------------------------- ----------+
| ID | USER | HOST | DB | COMMAND | TIME | STATE | INFO |
+----+------+------+-------------------- +---------+------+----------- +--------------------------------------- ----------+
| 2 | root | | information_schema | Query | 0 | preparing | select * from PROCESSLIST WHERE command="query" |
+----+------+------+-------------------- +---------+------+----------- +--------------------------------------- ----------+
1 row in set (0.00 sec)
Adding show commands and turning them into information_schema table is pretty simple. I'll be leading some exercises at the MySQL User's Conference in the evening.
As an example:
mysql> select * from PROCESSLIST WHERE command="query";
+----+------+------+--------------------
| ID | USER | HOST | DB | COMMAND | TIME | STATE | INFO |
+----+------+------+--------------------
| 2 | root | | information_schema | Query | 0 | preparing | select * from PROCESSLIST WHERE command="query" |
+----+------+------+--------------------
1 row in set (0.00 sec)
Adding show commands and turning them into information_schema table is pretty simple. I'll be leading some exercises at the MySQL User's Conference in the evening.
Woohoo!
from:
jzawodn
date: Mar. 15th, 2006 03:23 pm (UTC)
Link
Perhaps I'll do a major overhaul of mytop for 5.1
Reply | Thread
(no subject)
from:
jamesd
date: Mar. 16th, 2006 05:14 am (UTC)
Link
Reply | Thread
How about other SHOW commands?
from:
gmaxia
date: Mar. 21st, 2006 10:02 am (UTC)
Link
But, how about the other SHOW commands?
Specifically, SHOW SLAVE STATUS, SHOW MASTER LOGS, and SHOW MASTER STATUS are almost indispensable to deal with replication issues.
Also, SHOW VARIABLES and SHOW STATUS would be really useful in tables.
Can you pull a general trick to convert all current SHOW commands into information schema tables?
Now, THAT would be great!
Cheers
Giuseppe
Reply | Thread