简体   繁体   中英

Write to local database but read from remote database/mysql-server

So at work we have the following problem: We develop a php application that runs on multiple servers for a number of different clients. When we a problem or bug occurs on a clients application, we often have to download a dump of the whole database and import it locally to our machines to try and replicate the problem and fix it. My idea is the following: Seperate the mysql read and write commands, so the application only reads from the remote database (the clients db) and writes to either our local database or preferrably, into the void. We do not want to implement such a functionality for our application, because it would be a very big change to the core of our application. So my question is if there is any way to achive my goal? Any suggestions?

It seems the only valid way is to change the architecture of our application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM