当我在MySQL数据库中运行SHOW PROCESSLIST时,得到以下输出:
mysql> show full processlist;
+--------+------+-----------+--------+---------+-------+-------+-----------------------+
| Id | User | Host | db | Command | Time | State | Info |
+--------+------+-----------+-------+---------+-------+-------+-----------------------+
| 411665 | root | localhost | somedb | Sleep | 11388 | | NULL |
| 412109 | root | localhost | somedb | Query | 0 | NULL | show full processlist |
+--------+------+-----------+-------+---------+-------+-------+------------------------+
我想知道Command下的“睡眠”过程。这是什么意思?为什么它已经运行很长时间并且显示NULL?这使数据库变慢,当我终止进程时,它便可以正常工作。请帮我。