So far no data has been uploaded to the master (master is empty)

This only works if no data at all has been imported into the databases. 


So the databases are completely empty (except for the configuration so far).

In this case the replication can simply be initialized as follows:


# To the respective master (also for master-master)
mysql> SHOW MASTER STATUS\G

# To the slave
# Here adjust <acd-dbm> as well as <Name Logfile> and <Position LogFile>:
mysql> CHANGE MASTER TO MASTER_HOST='<acd-dbm>',MASTER_USER='repl',MASTER_PASSWORD='<passwort>',MASTER_LOG_FILE='<Name LogFile>', MASTER_LOG_POS=<Position LogFile>;

# Start Slave
mysql> START SLAVE;

# Check status
mysql> SHOW SLAVE STATUS\G




Data has been imported (master is not empty)

Depending on which architecture is installed, the replication is set up as on the linked pages:

Hint:

Restore MySQL Master Slave Replication

Restore MySQL Master-Master Replication