1、查詢是否鎖表
show open tables where in_use>0;
2、查詢進程
show processlist
查詢到相對應的進程,然后 kill id
3、查看正在鎖的事務
select * from information_schema.innodb_locks;
4、查看等待鎖的事務
select * from information_schema.innodb_lock_waits;
---------------------
作者:幻羽公子
來源:CSDN
原文:https://blog.csdn.net/huanyu12/article/details/79786110
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!