vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Database Redundancy (https://vborg.vbsupport.ru/showthread.php?t=184678)

Mars12343 07-08-2008 01:47 AM

Database Redundancy
 
I was trying to set up my vbulletin so that my database was on 2 servers at once both with the same data if someone could tell me how to do this i would be very grateful. Thanks!

--------------- Added [DATE]1215492400[/DATE] at [TIME]1215492400[/TIME] ---------------

Help please!

Dismounted 07-08-2008 05:39 AM

MySQL replication?

Mars12343 07-08-2008 05:48 AM

Yes.

Dismounted 07-08-2008 06:10 AM

I just told you the answer. My post was more "have you tried MySQL replication?".

Mars12343 07-08-2008 06:19 AM

I really dont know what that is. How would i do mysql replication?

Dismounted 07-08-2008 06:24 AM

Google "MySQL Replication". The first few results will help you.

Mars12343 07-08-2008 06:31 AM

Ok it says slave db Could i just turn my forums off import the db to another host then Set the second host as slave db info in my config.php?

R1lover 07-08-2008 06:44 AM

Here you go... enjoy the read :)

http://dev.mysql.com/doc/refman/5.0/...ion-howto.html

Mars12343 07-08-2008 07:18 AM

Im really trying to do it the easiest way possible... See above post with my question.

--------------- Added [DATE]1215509040[/DATE] at [TIME]1215509040[/TIME] ---------------

And lets say that my host cut my service... if im using mysql replication would it clear the database on the slave?

R1lover 07-08-2008 02:00 PM

now the truth comes out lol

Mars12343 07-11-2008 12:23 AM

Anyone have an answer for me?

R1lover 07-11-2008 12:31 AM

Quote:

Originally Posted by Mars12343 (Post 1572398)
Anyone have an answer for me?

Yes we both posted the info above, you will need to be able to read the links in order to see.

Mars12343 07-12-2008 05:48 AM

I did read it and i didnt see an answer in there...

And with the built in slave function is that the same as mysql replication just built into vb?

R1lover 07-12-2008 05:51 AM

The answer is this...

You can use replication in mysql, mysql is the database software. In order to do what you are asking that is the answer, you need to learn about mysql and use the replication feature of it. The link above gives you a full how too on it.

--------------- Added [DATE]1215845564[/DATE] at [TIME]1215845564[/TIME] ---------------

Here are the links again in case you missed it.

18.1.1. How to Set Up Replication

[+/-]

18.1.1.1. Creating a User for Replication
18.1.1.2. Setting the Replication Master Configuration
18.1.1.3. Setting the Replication Slave Configuration
18.1.1.4. Obtaining the Master Replication Information
18.1.1.5. Creating a Data Snapshot Using mysqldump
18.1.1.6. Creating a Data Snapshot Using Raw Data Files
18.1.1.7. Setting Up Replication with New Master and Slaves
18.1.1.8. Setting Up Replication with Existing Data
18.1.1.9. Introducing Additional Slaves to an Existing Replication Environment
18.1.1.10. Setting the Master Configuration on the Slave

Mars12343 07-14-2008 06:28 AM

I was referring to the slave database option in the config.php is it basically the same thing as a mysql replication?

Dismounted 07-14-2008 06:53 AM

You need to setup MySQL replication (or rather, have synchronised MySQL servers), to use the slave database function.

Mars12343 07-14-2008 05:29 PM

So i just turn my forum offline do a sql dump import it to the new server and add the slave db info to my config.php then turn my forum back on and im done?

R1lover 07-14-2008 05:57 PM

It seems you are in way over your head with this idea, I would recommend you hiring someone to take care of this for you.

Mars12343 07-14-2008 09:54 PM

Quote:

Originally Posted by Mars12343 (Post 1575212)
So i just turn my forum offline do a sql dump import it to the new server and add the slave db info to my config.php then turn my forum back on and im done?

Anyone?

Dismounted 07-15-2008 09:38 AM

No, you cannot simply do that - your data will eventually be out-of-date.

ssslippy 07-15-2008 12:50 PM

You need to use both MySQL data replication and the slave database system. However it sounds like you are trying to do this on 2 different web hosts. Do NOT do this. Your forums will suffer dramatically.

Videx 07-16-2008 02:33 AM

Forget it. These guys are experts and when you ask them how to do something, no matter how ridiculous it is, they'll answer you.

You don't want any fancy replication at all. All you want is regular db backups. These can be done manually via Cpanel. There are also methods to set up automatic daily backups; do a search here.


All times are GMT. The time now is 05:54 AM.

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.01120 seconds
  • Memory Usage 1,749KB
  • 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
  • (22)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