MySQL database replication

后端 未结 7 1074
青春惊慌失措
青春惊慌失措 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:04

    You could take the binary logs from each of the masters, parse them with mysqlbinlog and then run that into the consolidated machine.

    Something very approximately like:

    mysqlbinlog [binary log files] | mysql -h consolidated
    

    you'd need some kind of simple application (I suspect it could be done in bash if you needed) to wrap the logic.

提交回复
热议问题