mysql replication master from the filter

Copy the filter

Make copies only the specified node from the database, or specify the specified database table

Restrictions on the master server

--  配置文件中添加 
binlog-do-db  //数据库白名单,多个数据库需要多行实现
binlog-ignore-db //数据库黑名单 

Restrictions on the slave server

-- 配置文件中添加 
replicate_do_db=  指定复制库的白名单
replicate_ignore_db=  指定复制库黑名单
replicate_do_table= 指定复制表的白名单
replicate_ignore_table=  指定复制表的黑名单
replicate_wild_do_table= foo%.bar% 支持通配符
replicate_wild_ignore_table=

Note: The filter does not support the more library operations

Published 24 original articles · won praise 0 · Views 3599

Guess you like

Origin blog.csdn.net/studywinwin/article/details/104099769