본문 바로가기

프로그래밍/mysql

mysql - 테이블 단위 replication

반응형
/etc/my.cnf파일안에...
server-id = 2
master-host = '211.000.000.000'
master-user = 'root'
master-password = '1111'
replicate-do-db = 'test'
replicate-do-table = 'test.m1'
replicate-do-table = 'test.m2'
replicate-do-table = 'test.s1'
반응형