0

I exported data from an existing database to bootstrap replication. When setting --master-data to 1 or 2 for mysqldump it writes the log position to the dump file. However the generated command does not allow me to change the name of the replication. I need a command like

CHANGE MASTER 'replicationname' TO 

is there a more elegant way than grepping this statement from the file and extracting the needed data from it?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.