Skip to content

UNLOCK

UNLOCK TABLES;
Query OK, 0 rows affected (0.00 sec)

The UNLOCK TABLES SQL command in MySQL is used to release any locks held by the current session on the named tables or databases. In the above example, all table locks are released. If the session currently holds a global read lock or named lock, UNLOCK TABLES will release that as well.