8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 10 优化 / 10.14 检查服务器线程(进程)信息
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

10.14 检查服务器线程(进程)信息10.14 Examining Server Thread (Process) Information

为了确定你的 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”.