Adding a second database to replication... How?
All -
I've just recently jumped onboard with doing MySQL replication. I eventually want to replicate the majority of my databases, but figured I'd start with just one. I followed the documentation here on mysql.com with one small twist... rather than use FLUSH TABLES WITH READ LOCK and mysqldump, I used mysqlhotcopy with the --record-log-pos switch. It worked great, and I was able to bring the slave database online and get the replication going without a hitch.
Here's the problem... I want to add another database. How can I do that? When I issue the CHANGE MASTER TO command with the new log file and position... what happens to my existing replication? Is it smart enough to know it doesn't need to playback all of that because some of the items may already be in sync?
Subject
Views
Written By
Posted
Adding a second database to replication... How?
18127
September 06, 2007 09:40PM
12270
September 07, 2007 03:07PM
11145
September 07, 2007 09:47PM
9870
September 10, 2007 03:05PM
89599
April 18, 2008 01:17PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.