Skip to main content

MariaDB Permissions for Releem Agent

Use this page to create and review the database account that the Releem Agent uses with MariaDB 10.1–11.0. The examples separate the grant families used by the current installer according to what they allow; they are not a universal least-privilege policy. Have a DBA select and review only the enabled capabilities for the target MariaDB version and hosting environment.

Replace AGENT_SOURCE_HOST with the exact host from which the Agent connects, such as 127.0.0.1 when the Agent uses a local TCP connection. Replace <PASSWORD> through your approved credential-management process. Do not use a wildcard host as the default.

Performance Schema coverage and administrative privileges vary by MariaDB version and managed service. Validate every statement against the actual version and deployment before applying it.

For Amazon RDS for MariaDB, create an account that accepts connections from the Agent security group or exact Agent address. AWS controls administrative privileges and parameter changes through the RDS service, so use the MariaDB on AWS RDS installation guide together with the grants supported by the selected RDS version.

For a remote MariaDB connection, the current automatic installer creates a wildcard account host when RELEEM_MYSQL_HOST is not 127.0.0.1 or a local socket. If you require an exact-source account, use a DBA-created account and the manual installation configuration instead. That avoids wildcard account creation, but it does not remove the installer's separately documented child-process argument and log-upload risks.

Monitoring and query visibility​

Create the monitoring account with an exact Agent source host:

CREATE USER 'releem'@'AGENT_SOURCE_HOST' IDENTIFIED BY '<PASSWORD>';
GRANT PROCESS, REPLICATION CLIENT, SHOW VIEW ON *.* TO 'releem'@'AGENT_SOURCE_HOST';
GRANT SELECT ON performance_schema.events_statements_summary_by_digest TO 'releem'@'AGENT_SOURCE_HOST';
GRANT SELECT ON performance_schema.table_io_waits_summary_by_index_usage TO 'releem'@'AGENT_SOURCE_HOST';
GRANT SELECT ON performance_schema.file_summary_by_instance TO 'releem'@'AGENT_SOURCE_HOST';
GRANT SELECT ON mysql.* TO 'releem'@'AGENT_SOURCE_HOST';

These are the current installer's core monitoring grant families. The mysql.* grant exposes system-schema data, including account and privilege metadata, to the monitoring account. Confirm that each named Performance Schema table exists and is populated on the target MariaDB version. Managed services can expose a different subset.

Query visibility can require broader read access than baseline metrics. The current installer can grant global SELECT when query optimization is enabled:

GRANT SELECT ON *.* TO 'releem'@'AGENT_SOURCE_HOST';

Global SELECT exposes data across every database. A DBA must decide whether that scope is acceptable or whether an engine- and feature-specific scope can be used before enabling query collection.

Configuration application​

Applying database configuration is state-changing and must not be bundled into a monitoring-only account by default. For MariaDB 10.1–11.0, the current installer uses SUPER. This broad privilege grants state-changing administrative powers unrelated to metrics collection:

GRANT SUPER ON *.* TO 'releem'@'AGENT_SOURCE_HOST';

Grant SUPER only if the Agent is explicitly authorized to apply configuration. Some managed database services do not permit this grant and require provider-specific parameter-management workflows.

Query and schema application​

Collecting query text and applying query or schema changes are different capabilities. The global SELECT grant above supports query visibility but does not authorize schema changes.

Automatic schema changes are state-changing and can require DDL, DML, trigger, and replication-related privileges. Do not infer or add those privileges from this monitoring template. If the feature is explicitly approved and supported for the target MariaDB version, review the documented workflow and its current grants in Automatic Schema Changes, then scope the account to the approved databases and exact Agent source.

Verify the effective account​

Confirm the host-specific account and inspect its complete effective grants before starting the Agent:

SELECT User, Host FROM mysql.user WHERE User = 'releem';
SHOW GRANTS FOR 'releem'@'AGENT_SOURCE_HOST';

Record the approved capabilities, verify that no unintended host variant exists, and retest the grants whenever the Agent features, MariaDB version, or hosting model changes.

Continue installation​

Choose a supported environment on the MariaDB installation page.