How do I find which transaction is causing a “Waiting for table metadata lock” state?

前端 未结 4 728
暖寄归人
暖寄归人 2020-11-29 14:54

I am trying to perform some DDL on a table and SHOW PROCESSLIST results in a \" Waiting for table metadata lock \" message.

How can I find out which tra

4条回答
  •  失恋的感觉
    2020-11-29 15:52

    mysql 5.7 exposes metadata lock information through the performance_schema.metadata_locks table.

    Documentation here

提交回复
热议问题