
Originally Posted by
john933
That will not work. If server1 goes down and your users posts start getting submitted to server2, there would be various threads and posts missing that is not in server2 yet, but is in server1. The posts that are in server 1 that is not in server2 has already used the available unique database table id's that has not been used in server2 yet. So if you then dump the server1's data into server2's database it will not go in as you will have different posts with duplicate id's as the new posts that are done in server 2 will use the unique ids that have already been used in server 1. Hope you get what I mean here. lol
The only way you can really do this is by some how making everything get submitted to both servers databases at the same time.
You will have to use the server1 as the main database which normally gets used and updated and you probably will have to then also connect to server2's database which can be done just like server1, but I think you would have to use the ip address of each server instead of the web address when it comes to connecting to each database. You will then probably have to open one database connection, submit the data, close that database connection and then open the next database connection, submit the data and then also close that database connection. Keep repeating it this way.
Not 100% sure if this is the best way though, but I would imagine it would work.
Bookmarks