Files
doc-exports/docs/rds/umn/rds_08_0030.html
wangdengke2 88b6007443 rds_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2026-04-02 09:58:19 +00:00

4.1 KiB

Viewing Slow Query Logs of a DB Instance

Scenarios

Slow Query Log displays a chart of SQL statements that are taking too long to execute and allows you to sort slow SQL statements by multiple dimensions, such as by user, host, or SQL template. It helps you quickly identify bottlenecks and improve instance performance.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
  4. On the Instances page, click the DB instance name.
  5. In the navigation pane, choose SQL Analysis and Tuning under DBA Assistant.
  6. Click the Slow Query Logs tab.

    Slow SQL Analysis needs to be purchased separately. To use this function, upgrade DBA Assistant first.

  7. Click Upgrade DBA Assistant. In the displayed dialog box, you can learn about the enhanced features and billing rules.
  8. View slow queries over time and archived slow query logs in the last 1 hour, last 3 hours, last 12 hours, or a custom time period (spanning no more than one day).
  9. To export slow query log details or statistics, click the Details or Statistics tab above the log list and click Export on the tab page.

Follow-up Operations

To view historical export records, do as follows:

  1. Above the log list, click the Details or Statistics tab.
  2. Click View All Export Records. The displayed dialog box shows all historical export records.