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 Problems (https://vborg.vbsupport.ru/showthread.php?t=188975)

snunhuck 08-24-2008 11:12 AM

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

Marco van Herwaarden 08-24-2008 11:31 AM

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?

snunhuck 08-24-2008 11:35 AM

I am not using table prefixes and the table is missing. It does not exist on the backup on the other server either.

Marco van Herwaarden 08-24-2008 01:35 PM

Is this the only missing table? And why is it missing from the source/backup?

snunhuck 08-24-2008 02:00 PM

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?

Marco van Herwaarden 08-24-2008 02:21 PM

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.

snunhuck 08-24-2008 04:58 PM

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.

Marco van Herwaarden 08-25-2008 08:37 AM

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.


All times are GMT. The time now is 02:42 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.01719 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
  • (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