This section gives brief information on locking used by InnoDB and the transaction model implemented by InnoDB. InnoDB uses the following different lock types:
- Shared and exclusive locks: Two types of standard row-level locking are implemented. A shared lock allows you to read a row to different transactions; an exclusive lock holds to update or delete a row and does not allow you to even read the row to any different transaction.
- Intention locks: Table level locks to support multiple granularity locking by which InnoDB practically maintains the coexistence of row-level locks and entire table-level locks.
- Record locks: Index record lock that prevents any other transaction to insert, update, or delete the record. ...