Syntax\n------\n\nSHOW [FULL] PROCESSLIST\n\nDescription\n-----------\n\nSHOW PROCESSLIST shows which threads are running. You can also get this information from the information_schema.PROCESSLIST table or the mariadb-admin processlist command. If you have the PROCESS privilege, you can see all threads. Otherwise, you can see only your own threads (that is, threads associated with the MariaDB account that you are using). If you do not use the FULL keyword, only the first 100 characters of each statement are shown in the Info field.\n\nThe columns shown in SHOW PROCESSLIST are:\n\n| Name     | Description                                                                                                                                                |\n| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Id       | The client's thread ID.                                                                                                                                    |\n| User     | The username associated with the process.                                                                                                                  |\n| Host     | The host the client is connected to.                                                                                                                       |\n| db       | The default database of the process (NULL if no default).                                                                                                |\n| Command  | The command type. See Thread Command Values. |\n| Time     | The amount of time, in seconds, the process has been in its current state.                                                                                 |\n| State    | See Thread States.                                     |\n| Info     | The statement being executed.                                                                                                                              |\n| Progress | The total progress of the process (0-100%) (see Progress Reporting).                                                                |\n\nThe information_schema.PROCESSLIST table contains a number of additional columns. See TIME_MS column in information_schema.PROCESSLIST for differences in the TIME column between MariaDB and MySQL.\n\nNote that the PROGRESS field from the information schema, and the PROGRESS field from SHOW PROCESSLIST display different results. SHOW PROCESSLIST shows the total progress, while the information schema shows the progress for the current stage only.\n\nThreads can be killed using their thread_id or their query_id, with the KILL statement.\n\nSince queries on this table are locking, if the performance_schema is enabled, you may want to query the THREADS table instead.\n\nExamples\n--------\n\nSHOW PROCESSLIST;\n+----+-----------------+-----------+------+---------+------+------------------------+------------------+----------+\n| Id | User            | Host      | db   | Command | Time | State                  | Info             | Progress |\n+----+-----------------+-----------+------+---------+------+------------------------+------------------+----------+\n|  2 | event_scheduler | localhost | NULL | Daemon  | 2693 | Waiting on empty queue | NULL             |    0.000 |\n|  4 | root            | localhost | NULL | Query   |    0 | Table lock             | SHOW PROCESSLIST |    0.000 |\n+----+-----------------+-----------+------+---------+------+------------------------+------------------+----------+\n\nURL: https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-processlist