Use the MySQL and MariaDB connection workflow to add a MySQL or MariaDB server to Mini DBA monitoring. Monitoring uses database permissions for process, object, metadata, and diagnostic views, plus optional host OS login for CPU, memory, drive, and disk I/O metrics.
In Servers, select Add Server and choose MySQL.
| Field | What to enter |
|---|---|
| Type | MySQL |
| Instance / Host | MySQL or MariaDB host name or address |
| Username | MySQL or MariaDB monitoring user |
| Password | Password for the monitoring user |
The Mini DBA Engine must be able to reach MySQL or MariaDB, normally on port 3306 unless your server uses a different port.
With the recommended MySQL or MariaDB permissions, Mini DBA can monitor:
The MySQL permissions modal checks:
sys.*: essential for supported diagnostic routines.Run this as a MySQL or MariaDB administrator. Change the user, allowed host, and password first.
CREATE USER 'minidba_monitor'@'%' IDENTIFIED BY 'UseASecretPasswordHere';
GRANT SHOW DATABASES ON *.* TO 'minidba_monitor'@'%';
GRANT SELECT ON *.* TO 'minidba_monitor'@'%';
GRANT PROCESS ON *.* TO 'minidba_monitor'@'%';
GRANT SHOW VIEW ON *.* TO 'minidba_monitor'@'%';
GRANT EXECUTE ON sys.* TO 'minidba_monitor'@'%';
GRANT REPLICATION CLIENT ON *.* TO 'minidba_monitor'@'%';
-- Optional: allow session kill on MySQL 8.0+ where CONNECTION_ADMIN is supported.
GRANT CONNECTION_ADMIN ON *.* TO 'minidba_monitor'@'%';
FLUSH PRIVILEGES;
For older MySQL or MariaDB versions that do not support CONNECTION_ADMIN, use the least-privilege session-management permission available in your version and security policy.
MariaDB versions differ from MySQL in privilege names and feature availability. If a grant fails, check the equivalent privilege for your MariaDB version. The permissions modal is the source of truth for what Mini DBA can currently see with the connected login.
For AWS RDS MySQL or compatible hosted services, the permissions modal can check the RDS kill routine. Grant it only if you want Mini DBA operators to kill sessions from the console:
GRANT EXECUTE ON PROCEDURE mysql.rds_kill TO 'minidba_monitor'@'%';
For cloud-hosted servers where direct OS login is unavailable, configure cloud provider access in Cloud Provider Settings.
After adding MySQL or MariaDB, open the server and use the MySQL Connectivity Permissions modal. Select Refresh to probe current permissions and host metric access.
Use the modal when:
MySQL and MariaDB host OS login is configured from the MySQL permissions modal after the server is added. On Linux, use SSH with password or private key authentication; Mini DBA uses host commands such as top, df, and iostat. On Windows, use an account with suitable WMI and performance counter access where the MySQL or MariaDB host supports Windows host monitoring.
Host OS login can add:
For detailed setup, see Host OS Login.
'minidba_monitor'@'%', matches the engine host.sys.*.mysql.rds_kill.No. Root is not recommended for routine monitoring. Use a dedicated monitoring user with the grants shown above.
PROCESS allows Mini DBA to see process and session activity across the server. Without it, activity and troubleshooting pages may be incomplete.
Yes when the database endpoint is reachable and the login has the required permissions. Cloud host metrics may require Cloud Provider Settings instead of direct OS login.