Help Center/ Relational Database Service/ FAQs/ Log Management/ How Do I View Deadlock Logs of RDS for MySQL?
Updated on 2024-05-13 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

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, locate the target DB instance and click Log In in the Operation column.

    Figure 1 Logging in to a database

  5. On the displayed login page, enter the correct username and password and click Log In.
  6. 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.