There are many tutorials for master-slave replication in Mysql( link1, link2 ).
But there is one trick if you want to build a slave for a slave. It is log-slave-updates, you may add it under [mysqld] in /etc/mysql/my.cnf or attach --log-slave-updates in mysqld. By default, the slave server doesn't write bin log for relication data, change log-slave-updates to yes will let slave replicate the bin log for master.
Comments