vb.org Archive

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

discore 10-26-2002 05:28 AM

Database migration question.
 
I need to take all users, posts, and forums from one board to another. Both are running 2.2.8 so this shouldn't be too painful. I'm just going to post my plan.. I guess I'm asking if anyone sees any obvious flaws with this :)

1: Dump these tables: forum, poll, pollvote, post, privatemessage, user, and userfield to a MySQL schema file from the original database. (via mysqldump)

2: Edit the schema do it doesn't CREATE any tables, only INSERTs information. The columns in, for example, the user table aren't going to be the same since there are hack differences between the two. This is my biggest concern.

3: Load the schema into the new database.

Is this going to work as planned? I'm trying to leave behind a totally broken database that I hacked to hell and now is a mess and move onto a fresh one, without losing accounts or posts.

Logician 10-26-2002 09:58 AM

In other words you are trying to merge 2 vb.

If so I would say your method wouldnt work.

Check here:
https://vborg.vbsupport.ru/showthrea...threadid=37451

There is a very recently released merge script there..

discore 10-26-2002 04:20 PM

Excellent. Thanks for the info. Hopefully this works out okay.

concept 10-26-2002 04:32 PM

yeah i would say just save your
sql file and open it in wordpad and copy and past the members and posts into your query section
that should work

Logician 10-26-2002 05:21 PM

Quote:

Originally posted by concept
yeah i would say just save your
sql file and open it in wordpad and copy and past the members and posts into your query section
that should work

nope not so simple..

If you are merging 2 vb.s, all info will clash.. (userids, threadids, post ids, attachment ids etc.). By running the query of 1 db will just replace the entire db with that one, not merge..

Erwin 10-26-2002 08:07 PM

Logician is right - in both vB databases would be members with the same userid - one would override the other. You cannot do a simple import.

discore 10-27-2002 03:56 AM

What if the receiving database had no forums, posts, or users? That was my plan originally.

Logician 10-27-2002 08:04 AM

then it's not a merge, just a dublication. Just restore a backup of first db in the second server and you'll be fine unless you applied hacks which modify (add columns etc.) the db..

JulianD 11-08-2002 03:31 AM

Hi guys... I just made a Merge tool for vBulletin 2.2.x for a friend... I haven't merged the two board yet, but I will in a few days.... I've been testing it on my localhost forums and it works quite well. It's not perfect, but it works :)

Basically the script can do the following:

Merge: users, forums, threads, posts, polls, private messages and attachments.

You can associate users, to prevent duplication...

The script is not perfect, and you will have to reconfigure all the forum permissions, moderators, etc... But you will have all your users and information merged...

Just let me know if somebody is still interested about this, so we can test it and release it here.


All times are GMT. The time now is 05:53 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.01938 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)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