When backing your existing database up, backup software (depending on what you use) may add a line like this to the script for each of the tables that exist in the version you're currently running:
vB4 introduces new tables and new columns to existing tables. If you choose to go back to a 3.x version of the software and restore your database to the same database you were using, your backup script will drop (delete) all the 3.x tables, recreate and fill them with the data you had at the time you backed up. However, your restore will not delete the new vB4 tables that were created during the upgrade script.
As a result, when you go to upgrade again and the upgrade script tries to create and add data to these tables, it can't and gives you the error shown:
where n = a number
To counteract this, if restoring your database we highly recommend doing the following:
1. Create a new database and restore to this one
2. Update config.php to point to the new database (you may need to amend the login details also if that database uses a different db username and/or password)
If after trying this you still receive the above error, please feel free to post her for additional assistance.
Code:
DROP TABLE IF EXISTS PREFIX_TABLE;
As a result, when you go to upgrade again and the upgrade script tries to create and add data to these tables, it can't and gives you the error shown:
Code:
Database error in vBulletin 3.8.4: Invalid SQL: INSERT INTO forum_tagcontent (tagid, contenttypeid, contentid, userid, dateline) SELECT tagid, 2, threadid, userid, dateline FROM forum_tagthread; MySQL Error : Duplicate entry '[I]n-n-nnnn[/I]' for key 1 Error Number : 1062
To counteract this, if restoring your database we highly recommend doing the following:
1. Create a new database and restore to this one
2. Update config.php to point to the new database (you may need to amend the login details also if that database uses a different db username and/or password)
If after trying this you still receive the above error, please feel free to post her for additional assistance.
Comment