Help Center/
Relational Database Service/
FAQs/
Log Management/
How Do I View Deadlock Logs of RDS for MySQL?
Updated on 2024-10-22 GMT+08:00
How Do I View Deadlock Logs of RDS for MySQL?
Database deadlock logs are not recorded in error logs by default. To view deadlock logs, use Data Admin Service (DAS), a visualized and professional database management tool, to quickly execute SQL statements.
Procedure
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, locate the target DB instance and click Log In in the Operation column.
Figure 1 Logging in to a database
- On the displayed login page, enter the correct username and password and click Log In.
- Select the target database and choose SQL Operations > SQL Query. In the displayed SQL window, run show engine innodb status to view the latest deadlock logs of the selected database. Use the keyword LATEST DETECTED DEADLOCK to locate the latest deadlock logs. The latest deadlock logs will overwrite the historical deadlock logs.
Parent topic: Log Management
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