vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Using database on two copies of vB (https://vborg.vbsupport.ru/showthread.php?t=218898)

TitanJeff 07-18-2009 05:26 PM

Using database on two copies of vB
 
I'm planning ahead for vB4 and wanted to find out if I can run two versions of vB (my current and vB4) using the same database as I prepare the new forum to replace the old. I'd like to import all the current messages into the new vB and have any posts to the old vB also show up in the new as I am preparing to take it live.

Can this be done both technically and legally?

cheat-master30 07-18-2009 07:26 PM

You can run a copy of your site under testvb or something as long as it's not publically accessible and is password protected (.htaccess). This copy can then be used to prepare the new forum/import posts/test modifications.

Lynne 07-18-2009 08:08 PM

You do not want to have two 'sites' running on the same database, especially two different versions of vb. When you update, the database gets upgraded and may cause problems if you try to access it using the older version files. If you create a test site running version 4.0, you will want it to have it's own database. You can, however, create a copy of the live database and import it as a new database to use on the test site.

James Birkett 07-18-2009 09:05 PM

Quote:

Originally Posted by cheat-master30 (Post 1851296)
You can run a copy of your site under testvb or something as long as it's not publically accessible and is password protected (.htaccess). This copy can then be used to prepare the new forum/import posts/test modifications.

I don't believe it has to be password-protected? I thought the only condition was it isn't accessible publicly? (i.e. on a mysite.com/forum etc)

Lynne 07-18-2009 09:23 PM

From the license agreement:
Quote:

If you have a valid Software license, you may set up an additional test forum in order to test code, template and database modifications. To make this clear to us and our license verification procedures, place it in a directory called 'testvb' and be sure to password protect it. It must not be accessible by the general public.

James Birkett 07-18-2009 10:25 PM

Ahh, my bad.
Thanks for clearing that up Lynne!

Marco van Herwaarden 07-20-2009 01:33 PM

You can have 2 installations in 1 database by using different table-prefixes for each installation. But using 2 databases is much more flexible and less prone to mistakes.

TitanJeff 07-20-2009 02:03 PM

So the best route would be to import all old messages into the new database just before taking the new forum live?

Marco van Herwaarden 07-20-2009 02:13 PM

No, use the test to test the upgrade, prepair the new style. But redo all the changes and upgrade on your life board. You can export and re-import to updated style from the test to the production site.


All times are GMT. The time now is 03:54 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.01002 seconds
  • Memory Usage 1,726KB
  • 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
  • (9)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