Database Management

Monitor a read-only MySQL database instance in DPA

How to monitor a read-only MySQL database instance in DPA

First published date

10/22/2018 10:42 AM

Last published date

11/7/2025 4:41 PM

Overview

You cannot register a read-only MySQL database in DPA. DPA displays an error message stating that the user does not have enough privileges.

Note: For information about registering a read-only Amazon RDS for MySQL database instance, see Register an Amazon RDS for MySQL or Aurora database instance

Product section

Database Performance Analyzer

Cause

DPA requires that the monitoring user has updated privileges on the MySQL Performance Schema database.

Resolution

Register a MySQL database that is not read-only.

  1. Click Options > Register for Monitoring.
  2. Click MySQL, and click Next.
  3. Complete the Register Instance Wizard.

Stop monitoring on the MySQL database, and edit an advanced option so DPA does not update the MySQL Performance Schema.

  1. On the DPA home page, click Action > Stop Monitor next to the MySQL database.
  2. Click Options > Administration > Advanced Options.
  3. Click the DB Instance Options tab, and select the read-only MySQL database from the Database Instance list.
  4. Click one of the following options:
    • DPA 2024.4 and later: MYSQL_OR_MARIADB_PERFORMANCE_SCHEMA
    • Earlier versions: MYSQL_PERFORMANCE_SCHEMA
  5. From the New Value list, select Leave MySQL as it is, and click Update.

Update the connection to point to a read-only MySQL database, and start monitoring on the MySQL database. This operation does not require the monitoring user to have updated privileges on the MySQL Performance Schema database.

  1. Click Options > Update Connection Info.
  2. Select the MySQL database, and click Next.
  3. Enter the connection and user information of the read-only MySQL database, and complete the wizard.
  4. On the DPA home page, click Action > Start Monitor next to the MySQL database.