SHOW PROCESSLIST

Lista procesów to po prostu lista połączeń, czyli wątków, które w danej chwili są połączone z serwerem MySQL. Polecenie SHOW PROCESSLIST wyświetla listę wątków wraz z informacją o stanie każdego z nich, np.:

mysql> SHOW FULL PROCESSLIST\G *************************** Rekord 1. *************************** Id: 61539 User: sphinx Host: se02:58392 db: art136 Command: Query Time: 0 State: Sending data Info: SELECT a.id id, a.site_id site_id, unix_timestamp(inserted) AS inserted,forum_id, unix_timestamp(p *************************** Rekord 2. *************************** Id: 65094 User: mailboxer Host: db01:59659 db: link84 Command: Killed Time: 12931 State: end Info: update link84.link_in84 set url_to = replace(replace(url_to,'&','&'),'_','+'), ...

Get Wysoko wydajne MySQL. Optymalizacja, archiwizacja, replikacja. Wydanie II now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.