Mysql – Multi master replication with different database

MySQL

I have three database server.

  1. ip=192.168.1.101 db=google
  2. ip=192.168.1.102 db1=google db2=yahoo
  3. ip=192.168.1.103 db1=google db2=yahoo

I want to do master replication between server1 and server2 for db=google
and
master master replication between server2 and server3 for db=yahoo

Can I have a suggestion or reference links to do that?

Best Answer

I assume you have M1 -> M2 -> M3 -> M1 ?

On M1, have the tables in yahoo be ENGINE=BLACKHOLE.