MySQL database replication -
This scenario is:
- I have a MySQL server with a database, call Do this consolidated
- I have another MySQL server, with the original database, these are database production databases and there are daily updates.
- The company wants to copy Consolidated DB
Does each update on each table in the production database to complete a similar copy / Insert / delete? I know that the database is replicated on the database, but not on the table, from a different database to a target database.
I hope my explanation was clear. Thank you.
Edit: Will a recursive copy of each database be done for each database to work for a single rhythm? Or is this an ugly solution?
To clear some things, tell the things according to the current mysql practice. Database is a database server. A schema is a database example. Multiple servers in a database server can be within the table schema.
If you defined schema or tables on master / production server as If you want to duplicate , then replication will assist you by replication replication of all SQL statements by binary log shipping which is used by the boss on slave Which runs them duties as if they run on their own gradually
You can choose to repeat all the data, or you can get some schema or even some table You can also choose
You can not select tables from different schemas and they can be duplicated in a schema, a table belongs to a specific schema.
By the way, important notice can not be a replication server to be a slave to multiple owners, you can mimic this by using federated tables, but this data consolidation The server will never copy over the server, just show them that the data from various servers was on one server
The bonus of replication is that your consolidation server will update the data in more or less time.
Comments
Post a Comment