Locking types
1. Internal locking - performed within the MySQL server itself to manage contention for table contents by multiple threads. This type of locking is internal because it is performed entirely by the server and involves no other programs.
2. External locking occurs when the server and other programs lock
MySQL uses table-level locking for
1. Internal locking - performed within the MySQL server itself to manage contention for table contents by multiple threads. This type of locking is internal because it is performed entirely by the server and involves no other programs.
2. External locking occurs when the server and other programs lock
MyISAM
table files to coordinate among themselves which program can access the tables at which timeMySQL uses table-level locking for
MyISAM
, MEMORY
and MERGE
tables, page-level locking for BDB
tables, and row-level locking for InnoDB
tables.