AppA stores/retrieves data from dbA.tableA
. AppB stores/retrieves data from dbB.tableA
. tableA definition is the same across these databases. To start with dbB.tableA
was copied from dbA.tableA
(assuming both had 5 rows).
row6
was created by AppA (say primary key 6) row7
was created by AppB (say primary key 7). I would like row7
to be copied to dbA.tableA
and row6
to dbB.tableA
Is this even possible to setup bi-directional replication, so that the AppA, AppB view the same data at any point in time.
If the primary key is an auto-increment, would it be possible to maintain integrity of data or is there a possibility that there would be collisions on the primary key.