Help Center/
Data Admin Service/
User Guide (ME-Abu Dhabi Region)/
User Guide/
Intelligent O&M/
MySQL DB Instances/
Locks and Transactions/
Metadata Locks
Updated on 2023-03-28 GMT+08:00
Metadata Locks
Overview
- Metadata locks (MDLs) are used to ensure consistency between DDL and DML operations. Usually, DDL operations require MDL write locks. Once an MDL lock occurs, it can have a significant impact on your database because all subsequent operations (SELECT, DML, and DDL operations) on the target table will be blocked, causing a backlog of connections.
- The system displays database MDL locks in real time. With these locks, you can quickly locate MDL problems and terminate the sessions holding MDL locks, so that blocked operations can be restored.
- This feature does not support DML locks. You can view and analyze them on the InnoDB Locks page.
- Currently, this feature is available only for MySQL 5.6 and 5.7.
- A maximum of 1,000 records can be displayed.
Procedure
- Log in to the DAS console using your username and password.
- On the Overview page, click Go to Intelligent O&M.
- Locate the required instance and click Details to go to the Intelligent O&M overview page.
- Choose Locks and Transactions > Metadata Locks.
- Select a lock status and type, and enter a database name, table name, and session ID as needed. Then, click Query.
- In the query result, check whether there are sessions that hold MDL locks. If yes, select the sessions as required and click Kill Session.
Parent topic: Locks and Transactions
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot