MySQL 8.4 Release Notes
- 10.14.1 访问进程列表10.14.1 Accessing the Process List
- 10.14.2 线程命令值10.14.2 Thread Command Values
- 10.14.3 一般线程状态10.14.3 General Thread States
- 10.14.4 复制源线程状态10.14.4 Replication Source Thread States
- 10.14.5 复制 I/O(接收器)线程状态10.14.5 Replication I/O (Receiver) Thread States
- 10.14.6 复制 SQL 线程状态10.14.6 Replication SQL Thread States
- 10.14.7 复制连接线程状态10.14.7 Replication Connection Thread States
- 10.14.8 NDB 集群线程状态10.14.8 NDB Cluster Thread States
- 10.14.9 事件调度器线程状态10.14.9 Event Scheduler Thread States
为了确定你的 MySQL 服务器正在做什么,检查进程列表可能会有所帮助,进程列表显示了在服务器内执行的线程集合当前正在执行的操作。例如:To ascertain what your MySQL server is doing, it can be helpful to examine the process list, which indicates the operations currently being performed by the set of threads executing within the server. For example:
mysql> SHOW PROCESSLIST\G
*************************** 1. row ***************************
Id: 5
User: event_scheduler
Host: localhost
db: NULL
Command: Daemon
Time: 2756681
State: Waiting on empty queue
Info: NULL
*************************** 2. row ***************************
Id: 20
User: me
Host: localhost:52943
db: test
Command: Query
Time: 0
State: starting
Info: SHOW PROCESSLIST
线程可以使用KILL语句终止。参见第 15.7.8.4 节,“KILL 语句”。Threads can be killed with the KILL
statement. See Section 15.7.8.4, “KILL Statement”.