Help Center/ TaurusDB/ FAQs/ Log Management/ How Do I View Deadlock Logs of GaussDB(for MySQL)?
Updated on 2024-09-05 GMT+08:00

How Do I View Deadlock Logs of GaussDB(for MySQL)?

Database deadlock logs are not recorded in error logs. 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, choose Databases > GaussDB(for MySQL).
  4. On the Instances page, locate the instance you want to log in and click Log In in the Operation column.
  5. On the displayed login page, enter the correct username and password and click Log In.

    Figure 1 Logging in to an instance

  6. Select the target database and click SQL Operations > SQL Window.
  7. 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.