MySQL 8.0 Release Notes
MySQL 8.0 Source Code Documentation
The Performance Schema exposes lock information through these tables:
data_locks
: Data locks held and requesteddata_lock_waits
: Relationships between data lock owners and data lock requestors blocked by those ownersmetadata_locks
: Metadata locks held and requestedtable_handles
: Table locks held and requested
The following sections describe these tables in more detail.