PDA

View Full Version : Using 2 databases for 1 forum?


photongbic
08-28-2006, 02:51 AM
I occasionally have an issue with...

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013

Can I have two databases running on two seperate servers with the same info for one forum? A database mirror? Will vBulletin write/read to/from both? If so, how do I set it up? Just add the other database to config.php? Do I need to copy the orginal to the other database or will vBulletin copy the data over?

I know, I'm full of questions but I would really appreciate any help that you could offer.

Thanks!

Ntfu2
08-29-2006, 03:11 AM
You'd need to setup mySQL replication. But i'm affraid that wont help you at all.

That error is from your hosting companies MySQL server going down constantly, you need to contact them and ask what their problem is and see if they are fixing it.

If not, i suggest looking for another hosting company

photongbic
08-29-2006, 04:46 AM
You'd need to setup mySQL replication. But i'm affraid that wont help you at all.

That error is from your hosting companies MySQL server going down constantly, you need to contact them and ask what their problem is and see if they are fixing it.

If not, i suggest looking for another hosting company

True but I am kinda locked into them right now. I have created another database on a different system and would love to have the two databases serving info at the same time but I don't know if it is possible. How does mySQL replication integrate with vBulletin?

Ntfu2
08-29-2006, 05:41 AM
let me see if i can find the link if thats how you wanna go :) But having it on a different machine is going to cause some lag and delay the load times.

I know you'll have to edit the config.php file to read from the second database, its something like slave server maybe, i dont remember off the top of my head.

Then you'll need to create your slave database and it has to have the same name as the orginal so it'll have to be on a different machine/hosting account then the orginal i beleive.

Here is the link about replication:

http://dev.mysql.com/doc/refman/5.1/en/replication-implementation.html

Good luck :D

iamnofear
08-31-2007, 04:29 PM
how about the case that 2 database in the same server ?