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;
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;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。