Questions tagged «processlist»

7
如何停止正在运行的MySQL查询?
我mysql从Linux Shell 连接到。我时不时地运行一个SELECT太大的查询。它可以打印,我已经知道这不是我的意思。我想停止查询。 击中Ctrl+C(几次)会mysql完全杀死并把我带回外壳,所以我必须重新连接。 是否可以在不杀死mysql自己的情况下停止查询?
258 mysql  kill  processlist 

6
如何在mysql中自定义`show processlist`?
我想按时间订购,但似乎没有办法? mysql> show processlist; +--------+-------------+--------------------+------+---------+--------+----------------------------------+------------------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time | State | Info | +--------+-------------+--------------------+------+---------+--------+----------------------------------+------------------------------------------------------------------------------------------------------+ | 1 | system user | | NULL | Connect | 226953 | Waiting for master to send event | NULL | | 2 | system user …

4
在MySQL命令中显示PROCESSLIST:sleep
当我在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 | …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.