vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Using 2 databases for 1 forum? (https://vborg.vbsupport.ru/showthread.php?t=125124)

photongbic 08-28-2006 02:51 AM

Using 2 databases for 1 forum?
 
I occasionally have an issue with...

Quote:

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

Quote:

Originally Posted by Ntfu2
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/...mentation.html

Good luck :D

iamnofear 08-31-2007 04:29 PM

how about the case that 2 database in the same server ?


All times are GMT. The time now is 09:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00954 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete