1 2 3 4 5 6 7 8 9 10 11 12
| mycli -u proxyadmin -P6032 > INSERT INTO mysql_query_rules (rule_id, active, match_digest, destination_hostgroup, apply) VALUES (1, 1, '\/\*FORCE_MASTER\*\/', 1, 1); > INSERT INTO mysql_query_rules (rule_id, active, match_digest, destination_hostgroup, apply) VALUES (2, 1, '\/\*FORCE_SLAVE\*\/', 2, 1); > INSERT INTO mysql_query_rules (rule_id, active, match_digest, destination_hostgroup, apply) VALUES (10, 1, '^SELECT .* FOR UPDATE$', 1, 1); > INSERT INTO mysql_query_rules (rule_id, active, match_digest, destination_hostgroup, apply) VALUES (11, 1, '^SELECT .*', 2, 1); > LOAD MYSQL QUERY RULES TO RUNTIME; > SAVE MYSQL QUERY RULES TO DISK;
> INSERT INTO mysql_users (username, password, default_hostgroup, default_schema, transaction_persistent, max_connections) VALUES ('', '', 1, 'bbl_keycloak', 1, 200); > ... > LOAD MYSQL USERS TO RUNTIME; > SAVE MYSQL USERS TO DISK;
|