Posts

Showing posts from June, 2014

MySQL Master Slave Replication

Image
MySQL Master Slave Replication is one way to spread the load across multiple servers.Replication allows you to take one database, make an exact copy of it on another server, and set one of them (the slave) to take all its updates from the other (the master). Its just an one-way communication (Master to Slave), Slave just receiving any event or update from Master, so if Master updated Slave will automaticly updated but if the update did on Slave ofcourse Master is won’t updated. If you want update Multiple Server simultaneously each other, you must try MySQL Master Master Replication. Master address  10.11.218.251 Slave address  10.11.218.252 Setup Master #vim /etc/my.cnf log-bin=mysql-bin server-id=1 binlog-ignore-db=”mysql” * Restart MySQL Master Service # killall mysql mysqld mysqld_safe # mysqld_safe –user=mysql & * Create an user on the Master server that allows replication on the Slave. mysql> GRANT REPLICATION SLAVE ON *.* TO replicator@