Welcome to Tip #1 in MySQL Replication Series. In this tip we will go over what to do when you only want to replicate certain data to slave(s). Most general way to tell what is replicated to which slave is to include following configuration directive in my.cnf file depending on your environment and your goals. We will start with slave server side options since you have more flexibility on slave on what to replicate and what not to.
Slave server options:
replicate-do-db = dbname (or) replicate-do-db =
dbname1, dbname2, …, dbnameN
This option is used on slave server to tell the server to only replicate …