MySQL / Percona — Prerequisites
Prerequisites for monitoring MySQL / Percona with HEAL.
Prerequisites to complete before adding this component in the HEAL Control Center.
To configure a user in MySQL for monitoring purposes with HEAL, follow these steps:
Prerequisites#
- Ensure you have administrative access to the MySQL server.
-
Verify that the MySQL port (default:
3306) is open to allow JDBC connections from the HEAL Component Agent to the MySQL server. -
Connect to your target MySQL database server using a user account with sufficient privileges to create new users.
-
Execute the following command in the MySQL console:
CREATE USER 'username'@'IP_ADDRESS' IDENTIFIED BY 'password';Replace the following:
usernamewith the desired username for monitoring.IP_ADDRESSwith the IP address of the host where the HEAL Component Agent is deployed.passwordwith a strong password for the new user.- Grant the necessary privileges to the newly created user to enable monitoring:
GRANT SELECT ON *.* TO 'username'@'IP_ADDRESS' IDENTIFIED BY 'password';Ensure you replace
username,IP_ADDRESS, andpasswordas per your configuration in Step 2. -
Update the HEAL configurations to use the newly created MySQL user credentials for database monitoring.
Notes: It is essential that the user credentials created are also configured in HEAL to monitor the target MySQL database effectively.
See also: MySQL / Percona (what HEAL monitors)