On a replica, you must establish a unique server ID. If this has not already been done, this part of replica setup requires a server restart.
If the replica server ID is not already set, or the current
value conflicts with the value that you have chosen for the
replication source server, shut down the replica server and edit
[mysqld] section of the configuration
file to specify a unique server ID. For example:
After making the changes, restart the server.
If you are setting up multiple replicas, each one must have a
server_id value that
differs from that of the source and from any of the other
If you do not set
(or set it explicitly to its default value of 0), the replica
refuses to connect to a source.
You do not have to enable binary logging on the replica for replication to be set up. However, if you enable binary logging on the replica, you can use the replica's binary log for data backups and crash recovery, and also use the replica as part of a more complex replication topology. For example, where this replica then acts as a source to other replicas.