Installation for Self-Managed MySQL Servers (Windows)
Automatic Installation
Run the following command in Windows PowerShell as Administrator:
$env:RELEEM_MYSQL_MEMORY_LIMIT=0; $env:RELEEM_API_KEY="your_api_key"; $env:RELEEM_MYSQL_ROOT_PASSWORD="your_root_password"; $env:RELEEM_CRON_ENABLE=1; $env:RELEEM_QUERY_OPTIMIZATION="true"; iwr -useb https://releem.s3.amazonaws.com/v2/install.ps1 | iex
Parameters:
RELEEM_HOSTNAME- Server hostname, which should display in the Releem DashboardRELEEM_API_KEY- API Key. Get it from the Profile page in the Releem DashboardRELEEM_MYSQL_HOST- use this variable in case MySQL listens on a different interface. Default value is127.0.0.1RELEEM_MYSQL_PORT- use this variable in case MySQL listens on a different port. Default value is3306RELEEM_MYSQL_LOGIN- MySQL user name to collect MySQL metricsRELEEM_MYSQL_PASSWORD- MySQL user password to collect MySQL metricsRELEEM_MYSQL_ROOT_PASSWORD- MySQLrootuser password used during installation if the installer should create thereleemuser automaticallyRELEEM_MYSQL_MEMORY_LIMIT- change this parameter in case there is other software installed on the server. Default value0means use all memory. Learn moreRELEEM_CRON_ENABLE- set1to enable daily automatic updates or0to disable themRELEEM_QUERY_OPTIMIZATION- settrueif Releem Agent should collect additional information for Automatic SQL Query Optimization
After installation, open the Releem Dashboard. If the server does not appear immediately, refresh the page.
Manual Installation
Use this method if you prefer to install and configure Releem Agent step by step.
-
Create read-only MySQL user "releem" using this guide. To enable Automatic SQL Query Optimization please add Additional Permissions.
-
Create the following folders on the server:
C:\ProgramData\ReleemAgent\C:\ProgramData\ReleemAgent\conf.dC:\Program Files\ReleemAgent
-
Download the Releem Agent file to the folder
C:\Program Files\ReleemAgent -
Create a file
C:\ProgramData\ReleemAgent\releem.confwith the following contents:apikey="change to your API key"
releem_cnf_dir="C:\\ProgramData\\ReleemAgent\\conf.d"
mysql_host="127.0.0.1"
mysql_port="3306"
mysql_user="releem"
mysql_password="change to your password"
mysql_restart_service=""
mysql_cnf_dir=""
interval_seconds=60
interval_read_config_seconds=3600
query_optimization=trueFor a full list of configuration settings, please refer to the Releem Agent Configuration Settings.
Important: Please set
mysql_passwordas previously generated password on step 1, andapi_keyfor your account which you could find on the Profile page in the Releem Dashboard. -
Please add the following variables to the MySQL configuration file and restart MySQL:
performance_schema=1
slow_query_log=1
performance-schema-consumer-events-statements-history=ON
performance-schema-consumer-events-statements-current=ON -
Run the following commands manually in Windows PowerShell as Administrator:
C:\'Program Files'\ReleemAgent\releem-agent.exe -f
C:\'Program Files'\ReleemAgent\releem-agent.exe install
C:\'Program Files'\ReleemAgent\releem-agent.exe start -
Visit the Releem Dashboard, if there is no server please refresh the page.