Mega Code Archive

 
Categories / MySQL / Command Mysql
 

Get the thread identity

mysql> SHOW PROCESSLIST; +----+------+-----------------+------+---------+------+-------+------------------+ | Id | User | Host            | db   | Command | Time | State | Info             | +----+------+-----------------+------+---------+------+-------+------------------+ |  3 | root | localhost:50274 | test | Query   |    0 | NULL  | SHOW PROCESSLIST | +----+------+-----------------+------+---------+------+-------+------------------+ 1 row in set (0.00 sec) mysql>