innodb查詢鎖
innodb查詢鎖
select r.trx_id waiting_trx_id, r.trx_mysql_thread_Id waiting_thread,b.TRX_STATE holer_state,r.trx_state blocking_state,
r.trx_query waiting_query, b.trx_id blocking_trx_id,
b.trx_mysql_thread_id blocking_thread, b.trx_query blocking_query
from information_schema.innodb_lock_waits w inner join information_schema.innodb_trx b on b.trx_id = w.blocking_trx_id
inner join information_schema.innodb_trx r on r.trx_id = w.requesting_trx_id;
select r.trx_id waiting_trx_id, r.trx_mysql_thread_Id waiting_thread,b.TRX_STATE holer_state,r.trx_state blocking_state,
r.trx_query waiting_query, b.trx_id blocking_trx_id,
b.trx_mysql_thread_id blocking_thread, b.trx_query blocking_query
from information_schema.innodb_lock_waits w inner join information_schema.innodb_trx b on b.trx_id = w.blocking_trx_id
inner join information_schema.innodb_trx r on r.trx_id = w.requesting_trx_id;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26526320/viewspace-2123444/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL 5.7 查詢InnoDB鎖表MySql
- MySQL探祕(五):InnoDB鎖的型別和狀態查詢MySql型別
- oracle 查詢鎖 && 解鎖Oracle
- Oracle查詢鎖、解鎖Oracle
- TX鎖查詢
- mysql鎖表查詢MySql
- oracle 鎖資訊查詢
- 查詢鎖的原因
- package鎖的查詢與解鎖Package
- [鎖機制] 鎖相關查詢
- information_schema.innodb_trx 查詢堆疊ORM
- 關於innodb中查詢的定位方法
- 查詢鎖表記錄
- MySql 鎖表 查詢 命令MySql
- SQL SERVER 查詢鎖資訊SQLServer
- 查詢鎖等待情況
- 查詢物件是否被鎖物件
- Oracle阻塞(鎖等待)查詢Oracle
- sqlserver查詢時不加鎖SQLServer
- 查詢鎖表 - 誰鎖住了我的表
- MYSQL INNODB中hash查詢表的實現MySql
- oracle 查詢殺死死鎖方案Oracle
- oracle 死鎖查詢處理Oracle
- db2_查詢鎖方法DB2
- InnoDB鎖學習
- MySQL鎖:03.InnoDB行鎖MySql
- MySQL中MyISAM為什麼比InnoDB查詢快MySql
- 鎖表的相關資訊查詢
- 查詢session被鎖的sql(轉)SessionSQL
- 查詢鎖的狀況的物件物件
- 查詢並解除oracle的死鎖Oracle
- Oracle死鎖查詢及處理Oracle
- Mysql innodb引擎(二)鎖MySql
- Innodb 鎖子系統
- mysql innodb的行鎖MySql
- MySQL鎖表相關問題查詢思路MySql
- mysql慢查詢,死鎖解決方案MySql
- RAC環境中的阻塞 查詢鎖