Information Schema INNODB_LOCK_WAITS Table

The Information Schema INNODB_LOCK_WAITS table contains information about blocked InnoDB transactions. The PROCESS privilege is required to view the table.

It contains the following columns:

ColumnDescription
REQUESTING_TRX_IDRequesting transaction ID from the INNODB_TRX table.
REQUESTED_LOCK_IDLock ID from the INNODB.LOCKS table for the waiting transaction.
BLOCKING_TRX_IDBlocking transaction ID from the INNODB_TRX table.
BLOCKING_LOCK_IDLock ID from the INNODB.LOCKS table of a lock held by a transaction that is blocking another transaction.

The table is often used in conjunction with the INNODB_LOCKS and INNODB_TRX tables to diagnose problematic locks and transactions.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.