Display open transactions in MySQL

后端 未结 4 2072
后悔当初
后悔当初 2020-12-02 12:55

I did some queries without a commit. Then the application was stopped.

How can I display these open transactions and commit or cancel them?

4条回答
  •  死守一世寂寞
    2020-12-02 13:37

    By using this query you can see all open transactions.

    List All:

    SHOW FULL PROCESSLIST  
    

    if you want to kill a hang transaction copy transaction id and kill transaction by using this command:

    KILL     // e.g KILL 16543
    

提交回复
热议问题