Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2008, 11:12 AM
snunhuck snunhuck is offline
 
Join Date: May 2007
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Migration Problems

Hi,

I've just migrated my database from a backup as there was a small problem on the server that corrupted all the database beyond repair.

Unfortunately, the database is showing up as version : vBulletin 3.7.0 Release Candidate 3

I know for a fact that it was STABLE before the backup so as to why it's showing up like that is a complete guess....

I'm trying to upgrade now and as all the files are in place (3.7.2 PL2) It's telling me that I'm upgrading to RC4

I was on 3.7.2 PL1 before the database was corrupted.

Here's what happens when I try to run the upgrade script:

Step 1) Critical Template Changes

Adding required security token to 0 customized template(s)
Altering setting Table (1 of 1)
Database error

DB Error:
Database error in vBulletin 3.7.0 Release Candidate 3:

Invalid SQL:

INSERT INTO upgradelog(script, steptitle, step, startat, perpage, dateline)
VALUES ('upgrade_370rc4.php', 'Critical Template Changes', 1, 0, 0, 1219576923);

MySQL Error : Table 'forum.upgradelog' doesn't exist
Error Number : 1146
Request Date : Sunday, August 24th 2008 @ 06:22:03 AM
Error Date : Sunday, August 24th 2008 @ 06:22:03 AM
Script : http://site/forum/install/upgrade_370rc4.php?step=1
Referrer : http://site/forum/install/upgrade_370rc4.php
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.51a-community
Reply With Quote
  #2  
Old 08-24-2008, 11:31 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If your board is showing as 3.7.0RC3 after you restore the backup, then this backup was created when the board was running that version.

About your upgrade error, can you verify that this table is missing, was it restored from the backup, are you using table prefixes?
Reply With Quote
  #3  
Old 08-24-2008, 11:35 AM
snunhuck snunhuck is offline
 
Join Date: May 2007
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not using table prefixes and the table is missing. It does not exist on the backup on the other server either.
Reply With Quote
  #4  
Old 08-24-2008, 01:35 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this the only missing table? And why is it missing from the source/backup?
Reply With Quote
  #5  
Old 08-24-2008, 02:00 PM
snunhuck snunhuck is offline
 
Join Date: May 2007
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 175 tables but I'm sure that there were more than that the last time I used that copy of the database.

I've a lot of users and things in that database - should I just do a fresh install and import the database?
Reply With Quote
  #6  
Old 08-24-2008, 02:21 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A fresh install would not help much. You will need to find a complete backup.

PS If it is only the 'upgradelog' table that is missing, then you might be able to use an older backup for this table. If you have done any upgrades since that other backup was made, then you will need to update the contents of the file accordingly.
Reply With Quote
  #7  
Old 08-24-2008, 04:58 PM
snunhuck snunhuck is offline
 
Join Date: May 2007
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how many tables there are in a fresh installation so I can't compare.

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

Here's what's missing:

regimage NOT found.
templatehistory NOT found.
thread NOT found.
threadrate NOT found.
threadread NOT found.
threadredirect NOT found.
threadviews NOT found.
upgradelog NOT found.
user NOT found.
useractivation NOT found.
userban NOT found.
userfield NOT found.
usergroup NOT found.
usergroupleader NOT found.
usergrouprequest NOT found.
usernote NOT found.
userpromotion NOT found.
usertextfield NOT found.
usertitle NOT found.
word NOT found.
Reply With Quote
  #8  
Old 08-25-2008, 08:37 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well then you have a serious problem as some key tables like 'thread', 'user' & 'usergroup' are missing. No way you can restore your board without those tables.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:44 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.03855 seconds
  • Memory Usage 2,223KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete