Skip to content

Instantly share code, notes, and snippets.

@dtest
Created September 27, 2016 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtest/7e74b5985c55a8696f25695523afd64e to your computer and use it in GitHub Desktop.
Save dtest/7e74b5985c55a8696f25695523afd64e to your computer and use it in GitHub Desktop.
Mirror query rules
mysql> SELECT * FROM mysql_query_rules\G
*************************** 1. row ***************************
rule_id: 1
active: 1
username: plam_rewrite
schemaname: NULL
flagIN: 0
client_addr: NULL
proxy_addr: NULL
proxy_port: NULL
digest: NULL
match_digest: NULL
match_pattern: ^SELECT .* FOR UPDATE
negate_match_pattern: 0
flagOUT: NULL
replace_pattern: NULL
destination_hostgroup: 1
cache_ttl: NULL
reconnect: NULL
timeout: NULL
retries: NULL
delay: NULL
mirror_flagOUT: NULL
mirror_hostgroup: NULL
error_msg: NULL
log: NULL
apply: 1
comment: NULL
*************************** 2. row ***************************
rule_id: 2
active: 1
username: plam_rewrite
schemaname: NULL
flagIN: 0
client_addr: NULL
proxy_addr: NULL
proxy_port: NULL
digest: NULL
match_digest: NULL
match_pattern: ^SELECT .*
negate_match_pattern: 0
flagOUT: NULL
replace_pattern: NULL
destination_hostgroup: 2
cache_ttl: NULL
reconnect: NULL
timeout: NULL
retries: NULL
delay: NULL
mirror_flagOUT: NULL
mirror_hostgroup: NULL
error_msg: NULL
log: NULL
apply: 1
comment: NULL
*************************** 3. row ***************************
rule_id: 3
active: 1
username: plam_mirror
schemaname: NULL
flagIN: 0
client_addr: NULL
proxy_addr: NULL
proxy_port: NULL
digest: NULL
match_digest: NULL
match_pattern: NULL
negate_match_pattern: 0
flagOUT: NULL
replace_pattern: NULL
destination_hostgroup: 3
cache_ttl: NULL
reconnect: NULL
timeout: NULL
retries: NULL
delay: NULL
mirror_flagOUT: NULL
mirror_hostgroup: 3
error_msg: NULL
log: NULL
apply: 0
comment: NULL
3 rows in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment