How do I sync a subset of tables between two databases on the same mysql database server

Posted by Mike on Server Fault See other posts from Server Fault or by Mike
Published on 2010-06-25T23:19:06Z Indexed on 2010/12/21 17:55 UTC
Read the original article Hit count: 130

Filed under:
|
|

would like to be able to sync a subset of tables between two mysql databases that are running on the same server. One of the databases acts as the master where inserts, updates and deletes can be made. The second database uses those same tables for read-only operations. I do not want to use federated tables to achieve this. The long term goal will be to separate the 2 databases to multiple servers, The second database that has the subset of tables as read-only may also be replicated a few times over to distribute geographically for load and performance purposes each with unqiue data.... Once that is achieved, I plan to use binlog to replicate those specific tables on the secondary databases. In the meantime, I'd like to keep these tables in sync. Is there a more elegant way to do this than other than using a cronjob and mysqldump?

© Server Fault or respective owner

Related posts about mysql

Related posts about database