Last active
December 13, 2022 05:43
-
-
Save wakwanza/bdeb6570e78f37cf658b8a059b0ab1cb to your computer and use it in GitHub Desktop.
Global variables update for proxysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update global_variables set | |
-- UserDataMonitor | |
variable_value="DBMONUSER" | |
where variable_name='mysql-monitor_username'; | |
update global_variables set | |
-- PasswordDataMonitor | |
variable_value="DBMONPASS" | |
where variable_name='mysql-monitor_password'; | |
update global_variables set variable_value='2000' | |
where variable_name in | |
('mysql-monitor_connect_interval','mysql-monitor_ping_interval','mysql-monitor_read_only_interval'); | |
update global_variables | |
set variable_value='127.0.0.1:6033;/var/tmp/proxysql.sock' | |
where variable_name='mysql-interfaces'; | |
update global_variables set variable_value='250' | |
where variable_name='mysql-max_connections'; | |
update global_variables | |
set variable_value='0.0.0.0:6032;/var/tmp/proxysql_admin.sock' | |
where variable_name='admin-mysql_ifaces'; | |
update global_variables set | |
-- AdminCredentials | |
variable_value="ADMINCREDS" | |
where variable_name='admin-admin_credentials'; | |
SAVE MYSQL VARIABLES TO DISK; | |
SAVE ADMIN VARIABLES TO DISK; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment