April 2010
Intermediate to advanced
276 pages
6h 16m
English
In this recipe, we will show how to configure a replication slave while coping with a master that both has data on it and potentially has that data changing, while minimizing the time for which the master must be "locked" from updates.
In the common case of adding a slave to a master that already has data in it, the simplest technique is to use the mysqldump binary provided by MySQL to inject the data from master to slave, and to reset the slave at the same time.
For this one-line command on the master to work, the following requirements must be met:
STOP SLAVE)Read now
Unlock full access