i have a master / slave replication setup based on statement based replication. On master database name DB1 , i have 5 tables and i want to replicate only two table on slave's database name DB2. Also i want to change the database name on my slave end.
So my cnf file on Slave end look like this and replication filtering is this :
replicate-rewrite-db="DB1->DB2"
replicate-do-table=DB2.table4
replicate-do-table=DB2.table5
Also i have tried below filtering as well :
replicate-rewrite-db="DB1->DB2"
replicate-do-table=DB1.table4
replicate-do-table=DB1.table5
But in both case records not getting replicated , also no error is reporting.
As per MySQL documentation , replicate-rewrite-db doesn't work with replicate-do-table.
Any method to resolve this ? or this is not possible ?
I'm using MySQL 5.6 community edition on Linux server.
I haven't made any changes to master end as it is on customer side.