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?