Forrest logo
back to the mysql tool

mysql:processlist:show

Show all running processes for a given MySQL database
$ mysql -e "show processlist;"
try on your machine

The command "mysql -e" is used to execute a single query in the MySQL database. In this case, the query to be executed is "show processlist;".

"SHOW PROCESSLIST" is a MySQL statement that lists all the active client connections and their corresponding processes in the database server. It provides information such as the connection ID, user, host, database, command, time, state, and more for each running process.

So, when you run the command "mysql -e "show processlist;"", it connects to the MySQL server and executes the "SHOW PROCESSLIST" query, returning a list of current connections and their details.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How to list all running MySQL queries?
  • How to show all running MySQK queries?
back to the mysql tool