How can I stop a running MySQL query?

后端 未结 7 1416
梦如初夏
梦如初夏 2020-12-04 05:05

I connect to mysql from my Linux shell. Every now and then I run a SELECT query that is too big. It prints and prints and I already know this is no

7条回答
  •  旧时难觅i
    2020-12-04 06:00

    You need to run following command to kill the process.

    > show processlist;  
    > kill query processId;
    

    Query parameter specifies that we need to kill query command process.

    The syntax for kill process as follows

    KILL [CONNECTION | QUERY] processlist_id

    Please refer this link for more information.

提交回复
热议问题