arzoo
01-04-2007, 07:08 PM
is it possible to merge the data of 2 mysql databases with the same db structure but with different data in them.
The problem i'm facing is that there are like 15 tables in the db (same set of fields, same set of tables), however, the tables contain different data and some tables are reference tables with prim keys where other tables use these keys as foreign keys. so when you just add one table over the other when putting the 2 dbs together the pks get all mixed up and some data will reference wrong information.
is there a script or a program that can merge similar dbs that synchronizes the prim keys at the same time so all the referencing is kept consistent after the merge?
thanks.
The problem i'm facing is that there are like 15 tables in the db (same set of fields, same set of tables), however, the tables contain different data and some tables are reference tables with prim keys where other tables use these keys as foreign keys. so when you just add one table over the other when putting the 2 dbs together the pks get all mixed up and some data will reference wrong information.
is there a script or a program that can merge similar dbs that synchronizes the prim keys at the same time so all the referencing is kept consistent after the merge?
thanks.