I use a makeshift PHP client system working with mySQL local database .
Now I have a second computer in a different place where this database should also be used. Therefore, I gave this mysql database to a server accessible over the Internet.
My problem is that in the first of them there are often problems with connecting to the Internet , and then the program does not work. But it should work every time!
Now I do not know how I should deal with this problem?
- Local database and one on the Internet, but how to combine them?
- Should I make a local database on the computer and match them together in one?
- I also want to change the structure of this system to symfony2 , so there is a way to solve this problem with this structure (e.g. doctrine ?)
Thanks for your help!
Update: My limitation is the Internet connection on the first computer, which cannot be fixed.
source share