Go Back   vBulletin Setup > vBulletinSetup Information > Community Forum Management > vBulletin Tutorials

Reply 
 
LinkBack Thread Tools Display Modes
Old 09-27-2008, 07:40 PM   #1
vBulletin Owner
 
Soliloquy's Avatar
 
Join Date: Jun 2007
Location: New York City
Posts: 2,663
Soliloquy is a jewel in the rough
Restoring your vBulletin database after a crash

In Backing up your vBulletin forum I listed three ways you could make a backup; with vBulletin's built-in tool, with phpMyAdmin, and with the command line. There aren't any built-in vBulletin tools to restore your database because your forum is most likely completely borked at this point, so it's time to get cozy with one of the remaining methods.

Restoring your database with phpMyAdmin
Log on to phpMyAdmin. Ask your web host if you don't know how to do this.

Click on the SQL tab of the right-hand page.

On the SQL page, uncheck "show query here again", else you're going to get a huge page with the contents of your entire database.

Below that, click Browse and find the backup file on your hard drive. Click Go, and wait anxiously as it reads the file, dumps your current database, and replaces it with your backup.

Sometimes your backup file will be too big for phpMyAdmin to handle. When that happens you have to use the command line.

Restoring your database via the command line
Log on to your shell account. Ask your web host if you don't know how to do this.

Navigate to the directory with your last database dump.

If it's a SQL file, use the following command (replacing your username, database name, and file name with your own, of course):
Code:
mysql -u Username -p dbname < dbname.sql
If the file is gzipped use this command instead:
Code:
gunzip < dbname.gz | MySQL -u username -p dbname
Hopefully everything is all right now. Go check on your forum and if everything's working properly, have a beverage. If there's still a problem, post your question here on vBulletin Setup.

Last edited by Brandon Sheley; 09-30-2008 at 01:46 PM.
Soliloquy is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 02-28-2009, 10:11 PM   #2
Community Manager
Supporters
vBulletin Owner
vBSetup Mods
 
Brandon Sheley's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,110
Blog Entries: 35
Brandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to behold
Send a message via AIM to Brandon Sheley Send a message via MSN to Brandon Sheley Send a message via Yahoo to Brandon Sheley
Re: Restoring your vBulletin database after a crash

I like to use putty as my client
PuTTY: a free telnet/ssh client
actually, I like using puTTY for a few things, it's just fun
__________________
Brandon Sheley / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.
Confirm your vBulletinSetup account / Read the-> Forum Rules
Are you on Twitter? @BrandonSheley I'm offering a few vBulletin Services & here is my General Forums experiment | Google fiber project

Brandon Sheley is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Community Forum Management > vBulletin Tutorials

Tags
crash, database, restoring, vbulletin

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBulletin Database Errors prabh Troubleshooting vBulletin Problems 2 08-30-2009 07:18 AM
vbulletin database error? hitmann Troubleshooting vBulletin Problems 9 03-21-2008 04:37 PM
Restoring post counts Caddyman Troubleshooting vBulletin Problems 2 02-06-2008 06:54 AM
Database error in vBulletin 3.6.7: Help. Corey Troubleshooting vBulletin Problems 1 08-12-2007 11:32 AM
Backing Up & Restoring a MySQL Database using phpMyAdmin / SSH Brandon Sheley Marketing Articles 0 09-11-2006 09:34 PM


All times are GMT -8. The time now is 10:29 AM.