## 8.14 检查服务器线程（进程）信息

[8.14.1 访问进程列表](processlist-access.html)
[8.14.2 线程命令值](thread-commands.html)
[8.14.3 一般线程状态](general-thread-states.html)
[8.14.4 复制源线程状态](source-thread-states.html)
[8.14.5 复制 I/O（接收器）线程状态](replica-io-thread-states.html)
[8.14.6 复制 SQL 线程状态](replica-sql-thread-states.html)
[8.14.7 复制连接线程状态](replica-connection-thread-states.html)
[8.14.8 NDB 集群线程状态](mysql-cluster-thread-states.html)
[8.14.9 事件调度程序线程状态](event-scheduler-thread-states.html)

[](<>)[](<>)[](<>)[](<>)

要确定您的 MySQL 服务器正在做什么，检查进程列表会很有帮助，该列表指示当前由服务器内执行的线程集执行的操作。例如：

```
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.html)陈述。看[第 13.7.8.4 节，“KILL 语句”](kill.html).
