Re: Newby resetting replication query
so - to clarify...
M=master
S=Slave
Database name is bugtracker = B for simplicity
M and S run B, and rep-0lication isnin place.
I break replication so M & S are running seprrately. S then gets used as "live" (DR scenario).
S database B is now "ahead" of M.
I dump B from S, import B on M. Now B is the same on both M & S.
I recreate replication.
So are you saying having imported B to M I then dump it on M and import it on S - even though it "has" to be the same. Or are you meaning dump _everything" on M and import to S
eg
on S mysqldump -u root -p --databases bugtracker > bugdump.db
on M MySQL -u root -p bugtracker < bugdump.db
and THEN
on M mysqldump -u root -p --all-databases > all_dump.db
on S mysql -uroot -p < all_dump.db
them recreate replication
?
cheers
Subject
Views
Written By
Posted
1792
June 13, 2019 08:45AM
450
June 13, 2019 01:04PM
Re: Newby resetting replication query
470
June 17, 2019 01:25AM
427
June 17, 2019 08:13AM
507
June 17, 2019 08:35AM
479
June 18, 2019 09:55AM
594
June 19, 2019 01:24AM
424
June 19, 2019 06:09AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.