The structure and rules to resolve read-write and write-write conflicts, and to enforce isolation (through mutual exclusion) among conflicting transactions
Atomicity, Consistency, Isolation, Durability - important for database integrity, reliability, performance, and correctness in environments with concurrent data interactions
Also known as S lock or Shared lock - database is always readable by other users, even when locked by a first user, but no write operations allowed until lock is released
Also known as X-lock or Exclusive lock - the session holding the write lock can read and write, but the database becomes inaccessible to all other users until the first transaction is completed
InnoDB storage engine automatically applies row-level locking for InnoDB tables, allowing concurrent multiple transactions of READ/WRITE operations on the same table but not on the locked rows, without making each other wait