vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Merging two MySQL Databases from same forum, one old, one new (https://vborg.vbsupport.ru/showthread.php?t=55193)

xtrememods 07-10-2003 02:07 PM

Merging two MySQL Databases from same forum, one old, one new
 
Right guys, I've already scanned through these here forums for an answer to my problem, and have tried some of the scripts here, but I just can't seem to get it to work.

Recently I pruned me forums without realising what I was doing. And doing this, I've deleted a lot of important threads and posts. I have a backup of my forums from two days ago, and basically I would like to pull all user, threads, posts etc from the old backup, and insert it back into the existing database.

If anyone can help, I would be prepared to pay to get this sorted.
Thanks in advance.

N!ck 07-10-2003 03:17 PM

Just drop your whole database and restore it using the backup .sql file. Make sure it has the CREATE TABLE xxxxx junk in it though, because I'm not 100% sure.

xtrememods 07-10-2003 03:44 PM

Erm, that kinda isn't any help at all, sorry, all that does is replaces the existing database with the old one, therefore it will not contain data from the existing one. So it's kinda pointless in me doing that, as I loose the data that I wish to keep from the new one. Thanks for your post though.

Gavin B. 07-10-2003 03:47 PM

ohh - messy ;)

I'm trying to think of the most efficiant way to do this - maybe if you export all the posts/threads/attachments from the backup (only the ones which you pruned though!) and then import them into the new database. Not 100% on that solution though.

There may me a database sync. tool which allows you to compare/add/update two database's but I don't know of one offhand.

xtrememods 07-10-2003 07:53 PM

Thanks for the help guys, but all is fixed now. A good friend of mine who is experienced with MySQL has manually inserted ALL the data, and it all works! Thanks for your help though.

N!ck 07-11-2003 02:49 AM

Quote:

Today at 10:44 AM xtrememods said this in Post #3
Erm, that kinda isn't any help at all, sorry, all that does is replaces the existing database with the old one, therefore it will not contain data from the existing one. So it's kinda pointless in me doing that, as I loose the data that I wish to keep from the new one. Thanks for your post though.
Since you responded so rudely and condescendingly, I'll make it a point to offer you no advice in the future, even when I have clearer solutions in mind.

base 07-11-2003 02:07 PM

i dont see that as being rude, in fact, he was quite polite to you.

Gavin B. 07-11-2003 02:17 PM

Yeah, don't take it the wrong way- I think he was just being a bit blunt. I doubt he meant to come across as rude :)


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