how to customize `show processlist` in mysql?

前端 未结 6 1072
孤城傲影
孤城傲影 2021-01-29 18:11

I want to order by Time,but seems no way to do that ?

mysql> show processlist;
+--------+-------------+--------------------+------+---------+--------+--------         


        
6条回答
  •  无人共我
    2021-01-29 18:27

    If you use old version of MySQL you can always use \P combined with some nice piece of awk code. Interesting example here

    http://www.dbasquare.com/2012/03/28/how-to-work-with-a-long-process-list-in-mysql/

    Isn't it exactly what you need?

提交回复
热议问题