Query is locking tables, can't kill that process
问题 I have a query locking tables in MySQL (using InnoDB): UPDATE table SET status = 2 WHERE status = 3 This query caused a deadlock on the table and can't bypass it. I tried to do: show processlist then kill the process id but i can't seems to kill it I tried: kill 9588 9588 is the process id. Then I do show processlist I still see the same query on the list. How can I force killing this process and then why would this query cause a dead lock? how can I fix it? 回答1: When you run a MySQL instance