Posts: 3,600
Name: Thierry
Location: I'm the uber Spaminator !
|
Honestly, you'd better dump a backup of the master db, copy it to the other server, and restore it on the second server.
If the connection between the 2 is fast, the whole process should be quite fast.
Of course, the second server will never be really in sync, as during the backup, some modifications can go after a table is dumped, but the compare way will just be too hard on the server.
Something as simple as:
Code:
mount remoteHost:/var/dbDir /mnt/remote
mysldump dbMaster > /mnt/remote/master.sql
ssh user@remoteHost -e "mysql slaveDb</var/dbDir/master.sql"
umount /mnt/remote
__________________
Only a biker knows why a dog sticks his head out the window.
|