Is there a way to detect locked tables in MySQL? I mean tables locked by the LOCK TABLE table WRITE/READ command.
LOCK TABLE table WRITE/READ
(Note that readers interested in
SHOW OPEN TABLES to show each table status and its lock.
SHOW OPEN TABLES
For named locks look Show all current locks from get_lock