Commands
SHOW PROCESSLIST
Use the SHOW PROCESSLIST
command to display the current workload of the system. The output of this command consists of id, user, host, database, time, and info.
The following table explains the output in detail:
Output | Description |
---|---|
id | The id of the process. |
user | The username associated with the process. |
host | The host to which the client is connected. |
database | The database if one is selected. |
time | The elapsed time since the running sql. |
info | The statement being executed. |
This command only shows the frontend received processlist now.
Syntax
Example
Terminate the process
After using the SHOW PROCESSLIST
command to display the running processes, you can terminate the idle process by the KILL
command.
Syntax
Example
Was this page helpful?