Skip to main content

MySQL Permissions for Releem Agent

Create read-only database user "releem" which Releem Agent will use to collect database metrics. Select your environment and database version, copy SQL statements and run in the MySQL console.

Change [Password] to your secret password

CREATE USER 'releem'@'%' identified by '[Password]';
GRANT PROCESS, REPLICATION CLIENT, SHOW VIEW ON *.* TO 'releem'@'%';
GRANT SELECT ON performance_schema.events_statements_summary_by_digest TO 'releem'@'%';
GRANT SELECT ON performance_schema.table_io_waits_summary_by_index_usage TO 'releem'@'%';
GRANT SELECT ON performance_schema.file_summary_by_instance TO 'releem'@'%';
GRANT SYSTEM_VARIABLES_ADMIN ON *.* TO 'releem'@'%';

Additional Database Permissions Required

To enable enable Automatic SQL Query Optimization please add Additional Permissions.

The SQL Query Optimization feature requires additional permissions for the Releem Agent user. These permissions will be granted during the automatic installation process. To grant these privileges, run the following query in the MySQL console:

  SELECT Concat("GRANT SELECT ON *.* TO `",User,"`@`", Host,"`;") FROM mysql.user WHERE User='releem';