MySQL database replication

后端 未结 7 1086
青春惊慌失措
青春惊慌失措 2021-02-10 17:10

This is the scenario:

  1. I have a MySQL server with a database, let\'s call it consolidateddb. This database a consolidation of several tables from v
7条回答
  •  渐次进展
    2021-02-10 18:13

    MySQL statement-based replication (basic replication) works by running the exact same statements that were run on the master on the slave. This includes information about what database the table was in.

    I don't think MySQL provides any built-in way to move replication statements between databases (i.e. "insert into db1.table1 ..." -> "insert into db2.table1"). You may be able to trick it by manually altering the replication logs on the fly, but it wouldn't be out-of-the-bod MySQL replication.

提交回复
热议问题