Replication in same server within different databases. Mysql 5.6
Cause it's on the same server, why don't you use a trigger for this? 

If you just wanna replicate data you can add a triger on update or on insert or both whatever you need. This way you can use your condition easily. Master/Slave replication would be better for different servers.

You can look here for mysql Trigger examples.
And here is a sample for your case.