mysql - 2 tables in 2 different databases with different structures with same type of data to be synced -


my problem have website customers place orders on. information goes orders, ordersproducts, ...etc tables. have reporting database on different server staff processing orders from. tables on server need order information , additional columns can add information , update current information

what best way information 1 server (order website) other (reporting website) efficiently without risk of data loss? not want reporting database connecting website information. implement solution on order website push data.

thoughts

  1. mysql replication - problem - replicated tables strictly reporting , not manipulation. example if customer address changes? need products added order? mess replicated table.

  2. double inserts - insert local tables , insert reporting database. problem - if whatever reason reporting database goes down there chance lose data because mysql connection wont able push data. implement sort of query log?


both servers use mysql , php

mysql replication sounds looking for, i'm not sure understand you've listed disadvantage there.

the solution me sounds master read-only slave slave reporting database. if concern changes master making slave out of sync shouldn't of issue, changes synced over. in situation of loss of connectivity slave track how many seconds behind master , execute changes until 2 in sync.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -