15.15.2 InnoDB INFORMATION_SCHEMA Transaction and Locking Information

15.15.2.1 Using InnoDB Transaction and Locking Information
15.15.2.2 InnoDB Lock and Lock-Wait Information
15.15.2.3 Persistence and Consistency of InnoDB Transaction and Locking Information
Note注意

This section describes locking information as exposed by the Performance Schema data_locks and data_lock_waits tables, which supersede the INFORMATION_SCHEMA INNODB_LOCKS and INNODB_LOCK_WAITS tables in MySQL 8.0. For similar discussion written in terms of the older INFORMATION_SCHEMA tables, see InnoDB INFORMATION_SCHEMA Transaction and Locking Information, in MySQL 5.7 Reference Manual.

One INFORMATION_SCHEMA table and two Performance Schema tables enable you to monitor InnoDB transactions and diagnose potential locking problems:

For more information about the preceding tables, see Section 26.4.30, “The INFORMATION_SCHEMA INNODB_TRX Table”, Section 27.12.13.1, “The data_locks Table”, and Section 27.12.13.2, “The data_lock_waits Table”.

15.15.2.1 Using InnoDB Transaction and Locking Information
15.15.2.2 InnoDB Lock and Lock-Wait Information
15.15.2.3 Persistence and Consistency of InnoDB Transaction and Locking Information