Welcome Guest, Not a member yet? Register   Sign In
Connect to alternate DB when default DB is down?
#3

[eluser]bradym[/eluser]
Sadly, our databases are not replicated or load balanced right now. A new db design with replication and load balancing is being developed but won't be ready for some time. Unfortunately MySQL Proxy isn't really an option yet, since (as you point out) it's still alpha.

So.. for now we need to continue to handle this in the code.

After my last post, I did a var_dump on the results of a failed db connect (just gave it the wrong password) and noticed that the conn_id property of the object is false. Based on that I'm playing with some code, I'll post back when I've got something working.


Messages In This Thread
Connect to alternate DB when default DB is down? - by El Forum - 07-29-2008, 06:51 PM
Connect to alternate DB when default DB is down? - by El Forum - 07-29-2008, 07:17 PM
Connect to alternate DB when default DB is down? - by El Forum - 07-29-2008, 07:23 PM
Connect to alternate DB when default DB is down? - by El Forum - 07-29-2008, 08:03 PM
Connect to alternate DB when default DB is down? - by El Forum - 07-30-2008, 05:22 PM
Connect to alternate DB when default DB is down? - by El Forum - 07-30-2008, 06:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB