January 2018
Intermediate to advanced
446 pages
12h 57m
English
One of the most used views is the process list. It lists all the queries running on the server:
mysql> SELECT * FROM PROCESSLIST\G*************************** 1. row *************************** ID: 85 USER: event_scheduler HOST: localhost DB: NULLCOMMAND: Daemon TIME: 44 STATE: Waiting for next activation INFO: NULL*************************** 2. row *************************** ID: 26231 USER: root HOST: localhost DB: information_schemaCOMMAND: Query TIME: 0 STATE: executing INFO: SELECT * FROM PROCESSLIST2 rows in set (0.00 sec
Or you can execute SHOW PROCESSLIST; to get the same output.
Other tables: ROUTINES contains the definition of functions and stored routines. TRIGGERS contains the definition of triggers. VIEWS contains ...
Read now
Unlock full access