Manual Installation for Self-Managed MySQL Servers (Windows)
-
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.d
C:\Program Files\ReleemAgent
-
Download the Releem Agent file to the folder
C:\Program Files\ReleemAgent
-
Create a file
C:\ProgramData\ReleemAgent\releem.conf
with the following contents:apikey="change to your API key"
releem_cnf_dir="C:\\ProgramData\\ReleemAgent\\conf.d"
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=trueImportant: Please set
mysql_password
as previously generated password on step 1, andapi_key
for 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
performance_schema_events_statements_history_size=500 -
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.