February 2018
Intermediate to advanced
510 pages
16h 10m
English
Similar to the master database server, each slave database server must have a unique ID. Once set up, this will require database server restart:
[mysqld]server-id=2
For setting up multiple slave database servers, a unique non zero server-id must be configured that is different from that of master or any other slave database servers. Binary logging on a slave database server is not required for replication to be set up. If enabled, a binary log file on a slave database server can be used for database backups and crash recovery.
Now, create a new database that will become the replica of the master database and import the database from the database dump prepared from the master database as follows:
mysql> CREATE ...
Read now
Unlock full access