LOCK TABLES and UNLOCK TABLES Syntax https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html LOCK TABLES ... WRITE https://dev.mysql.com/doc/refman/5.7/en/lock-tables.html