My Oracle Support Banner

What Does Thread Status "Waiting for table metadata lock" in the MySQL Server Processlist Mean? (Doc ID 1365549.1)

Last updated on OCTOBER 21, 2020

Applies to:

MySQL Server - Version 5.5 and later
Information in this document applies to any platform.

Goal

Since version MySQL Server 5.5 there is a new thread state in the output of SHOW PROCESSLIST:

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Example of metadata lock
 How to find out what transaction is holding the lock?
 Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.