setup_servers.sql 603 B

1234567
  1. INSERT INTO mysql_servers(hostgroup_id,hostname,port) VALUES (1,'mysql1',3307);
  2. INSERT INTO mysql_servers(hostgroup_id,hostname,port) VALUES (1,'mysql2',3308);
  3. UPDATE global_variables SET variable_value='monitoruser' WHERE variable_name='mysql-monitor_username';
  4. UPDATE global_variables SET variable_value='monitorpass' WHERE variable_name='mysql-monitor_password';
  5. UPDATE global_variables SET variable_value='2000' WHERE variable_name IN ('mysql-monitor_connect_interval','mysql-monitor_ping_interval','mysql-monitor_read_only_interval');
  6. LOAD MYSQL VARIABLES TO RUNTIME;
  7. SAVE MYSQL VARIABLES TO DISK;