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 MARCH 13, 2023

Applies to:

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


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


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
 Example of metadata lock
 How to find out what transaction is holding the lock?

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