Never mind; just configure two mysql servers to two different port numbers. I used to select 3306 for master and 3307 for slave.
- Create a new my.cnf for the sub server. (name it my_slave.cnf)
- Modify my_slave.cnf: do this using a different port and set the slave settings to it.
- Re-running the script: /etc/init.d/mysqld in /etc/init.d/mysqld_slave (or add new slavestart, slavestop commands in it.)
And this is my very subjective opinion: a separate replicated and non-replicable at the [database] level not at the table level. MySQL supports fine-tuning the level of replication, but it will be very difficult, while others will be confused after a few months, years later.
source share