Install Releem for MariaDB on Windows
Install the Releem Agent on a Windows server that runs MariaDB.
Prerequisites
Run PowerShell as Administrator. Make sure the MariaDB command-line client (mysql.exe or mariadb.exe) is available in PATH, and review MariaDB permissions. Both methods enable query collection. For manual installation, grant query visibility before starting the Agent; for automatic installation, verify the created account's grants afterward.
Automatic installation
Run the installer in PowerShell. Replace the bracketed placeholders with your Releem API key and MariaDB administrator password. The installer detects MariaDB but retains the shared RELEEM_MYSQL_* variable names.
$env:RELEEM_DB_MEMORY_LIMIT=0; $env:RELEEM_API_KEY="[RELEEM_API_KEY]"; $env:RELEEM_MYSQL_ROOT_PASSWORD="[MARIADB_ROOT_PASSWORD]"; $env:RELEEM_CRON_ENABLE=1; $env:RELEEM_QUERY_OPTIMIZATION="true"; iwr -useb https://releem.s3.amazonaws.com/v2/install.ps1 | iex
Use the manual method when you already have a releem database account.
Installer parameters
RELEEM_HOSTNAMEchanges the server name shown in the Dashboard.RELEEM_MYSQL_HOSTdefaults to127.0.0.1.RELEEM_MYSQL_PORTdefaults to3306.RELEEM_MYSQL_LOGINandRELEEM_MYSQL_PASSWORDselect an existing MariaDB monitoring account.RELEEM_DB_MEMORY_LIMITreserves memory for other software.0lets Releem consider all memory.RELEEM_CRON_ENABLE=1enables the scheduled Agent update;0disables it.RELEEM_QUERY_OPTIMIZATION=trueenables query data collection after you grant the required permissions.
Manual installation
- Create the
releemaccount using the MariaDB permissions guide. - Create
C:\ProgramData\ReleemAgent\conf.dandC:\Program Files\ReleemAgent. - Download
https://releem.s3.us-east-1.amazonaws.com/v2/releem-agent.exetoC:\Program Files\ReleemAgent\releem-agent.exe. - Create
C:\ProgramData\ReleemAgent\releem.confand restrict access to administrators and the Agent service account:
apikey="[RELEEM_API_KEY]"
releem_cnf_dir="C:\\ProgramData\\ReleemAgent\\conf.d"
mysql_host="127.0.0.1"
mysql_port="3306"
mysql_user="releem"
mysql_password="[MONITORING_PASSWORD]"
mysql_restart_service=""
mysql_cnf_dir=""
interval_seconds=60
interval_read_config_seconds=3600
query_optimization=true
Set mysql_restart_service and mysql_cnf_dir for the selected MariaDB service before applying a recommended configuration with the Agent.
- Add these settings to the active MariaDB configuration file, then restart MariaDB. Performance Schema requires a restart:
performance_schema=ON
performance-schema-consumer-events-statements-current=ON
performance-schema-consumer-events-statements-history=ON
slow_query_log=ON
- Install and start the service:
& 'C:\Program Files\ReleemAgent\releem-agent.exe' -f
& 'C:\Program Files\ReleemAgent\releem-agent.exe' install
& 'C:\Program Files\ReleemAgent\releem-agent.exe' start
Expected result
After you complete a supported installation method, the Dashboard should show Agent Status: Connected and current metrics or a current data timestamp.
Verify the installation
Confirm both the Agent connection and current metrics in the Dashboard. If either is missing, check the Agent logs.
Troubleshooting
Use Troubleshoot the Releem Agent. Correct the reported permission, network, or configuration issue before you re-run or restart the supported procedure.