doc-exports/docs/gaussdb_mysql/umn/gaussdb_03_0019.html
Wang , Deng Ke e944469104 gaussdb UMN 20221230 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2023-08-13 18:46:36 +00:00

3.2 KiB

Viewing Slow Query Logs

Scenarios

Slow query logs record statements that exceed long_query_time (1 second by default). You can view log details and statistics to identify the statements that are executing slowly and optimize the statements.

GaussDB(for MySQL) supports the following statement types:
  • SELECT
  • INSERT
  • UPDATE
  • DELETE
  • CREATE
  • ALTER
  • DROP

Viewing Log Details

  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 GaussDB.
  4. On the Instance Management page, click the target DB instance. The Basic Information page is displayed.
  5. In the navigation pane on the left, choose Logs.
  6. On the Slow Query Logs page, view the slow query log details.

    You can view the slow query log records of a specified execution statement type or a specific time period.