How do I find which transaction is causing a “Waiting for table metadata lock” state?
Works for MySql version < 5.7.3 Look for the Section – We can use INFORMATION_SCHEMA Tables. Useful Queries To check about all the locks transactions are waiting for: A list of blocking transactions: OR A List of locks on particular table: A list of transactions waiting for locks: Reference – MySQL Troubleshooting: What To Do When Queries Don’t Work, … Read more