Question

i'm trying to configure a master-slave MySQL server.

I'm using this: How to re-sync the Mysql DB if Master and slave have different database incase of Mysql replication?. I stopped the master server while i was doing the mysqldump, but i lose the Position from SHOW MASTER STATUS;.

My question is simple, is there any way to know the position of the master in the moment i made the dump?

Any suggestion is appreciated.

Was it helpful?

Solution

you can use the following option for mysqldump

mysqldump --opt --single-transaction --master-data <DB_NAME>

than you can grep dump to find out change to master (head -40 <dumpfile> will be quite enough)

if you have big databases you should rather go with innobackupex Percona utility

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top