If you want to add another slave to the existing replication configuration then you can do so without stopping the master. Instead, you duplicate the settings on the slaves.
To duplicate the slave:
Shutdown the existing slave (slavea):
shell> mysqladmin shutdown
Copy the data directory from the existing slave to the new
slave. You can do this by creating an archive using
tar or WinZip, or by
performing a direct copy using a tool such as
cp or rsync. Ensure
you also copy the log files and relay log files.
Copy the master.info and
relay.info files from the existing
slave to the new slave. These files hold the current log
positions.
Start the existing slave.
On the new slave, edit the configuration and the give the
new slave a new unique server-id.
Start the new slave; the master.info
file options will be used to start the replication process.

User Comments
Add your own comment.