PDA

View Full Version : Master/Slave Database


Aadil
03-28-2010, 01:23 AM
Hey I've got a forum with a number of users on it and I would like to have a master/slave database as I have got another dedicated server for the database.

I was wondering, I have Directadmin, how would i go about setting up Mysql Replication??

Also I kept getting database error when i just tried to use my database server as the master even thou i backed up and moved over the database over.

Any help or somewhere i can read I've been looking for a while

Angel-Wings
03-29-2010, 04:24 PM
http://www.howtoforge.com/mysql_master_master_replication

dunno if directadmin allows such settings - basically it's looking for a quiet moment, copy over the MySQL files and lock tables on the future master, then setting up the replica.
Before finally launching it - I recommend running a Repair run on the Slave - sometimes files copied with Rsync seem to be crippled.
And - also when rsync'ing - don't forget checking the file permissions on the slave ;)