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
Last published date
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
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.
- Click Options > Register for Monitoring.
- Click MySQL, and click Next.
- 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.
- On the DPA home page, click Action > Stop Monitor next to the MySQL database.
- Click Options > Administration > Advanced Options.
- Click the DB Instance Options tab, and select the read-only MySQL database from the Database Instance list.
- Click one of the following options:
- DPA 2024.4 and later: MYSQL_OR_MARIADB_PERFORMANCE_SCHEMA
- Earlier versions: MYSQL_PERFORMANCE_SCHEMA
- 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.
- Click Options > Update Connection Info.
- Select the MySQL database, and click Next.
- Enter the connection and user information of the read-only MySQL database, and complete the wizard.
- On the DPA home page, click Action > Start Monitor next to the MySQL database.