How To Backup and Restore WordPress Database

By 05-10-2009   BloggingDomain HostingGuest PostsTutorialsWordPress

How can you backup and restore your WordPress blog database? If you’ve been blogging long enough, you might have heard the words “Backup Your WordPress Database Regularly!” Well, this is quite true. Don’t take it with a pinch of salt! A healthy backup of your database could one day be THE ONLY means of restoring your blog should something go wrong such as a bad plug-in installation or an attack by blog hackers.

For a second time since I started blogging, this database backup of a thing, as some would call it, has saved me a lot of headache. Recently I messed up my blog’s permalink structure and my saving grace was the day before’s database backup.

DISCLAIMER: This tutorial is provided as it is. I shall not be held responsible in any way should you encounter problems like loss of database and entire blog/website along the way. Use this at your own discretion. It worked EXCELLENTLY well for me and should do the same for you hopefully!

How to Backup WordPress Database.

1.  Download, install and activate WordPress Database Backup available at austinmatzko.com/wordpress-plugins/wp-db-backup/

2. Go to Tools in the sidebar of your dashboard and click on Backup

wordpress-restore-01

Under Backup options as shown below, select “Download to your computer” and click on “Backup Now”. When the backup is done you’ll be given an option to choose where to save the backup. Save the backup and you’re done.

wordpress-restore-02

Note: I strongly advice you schedule a daily backup of your database as issues could arise at ANY TIME. Simply navigate down the Backup option page to Scheduled backup. Select the once daily option and select which tables you’d like included in the backup. Type in your email address, click the schedule backup button and all is well. Check to see if your first backup gets delivered successfully the next day.

wordpress-restore-03

How To Restore WordPress Database

The guide below will help you restore your database in no time using the backups that have been made in the past. I’m assuming that your current database has been damaged or is behaving erratically.

1. Log into your FTP account and Delete everything in the /wp-content/cache directory.

2. Log into PHP MyAdmin and select your wordpress database.  It’s mandatory you remember clearly well the name of your wordpress database especially if you auto-installed it using Fantastico.

wordpress-restore-04

A list of all of the tables contained in the database will be shown. As shown below, click on Check all to select all the tables then select the Drop option to delete them PERMANENTLY.

wordpress-restore-05

You’ll be prompted to confirm the Drop action

wordpress-restore-06

Choose Yes and all tables will be DELETED with this result displayed on your computer screen

wordpress-restore-07

Now that the database for wordpress is empty, let’s proceed to uploading our database backup file

wordpress-restore-08

Click on the Import menu as shown above and then browse to the location of the backup file as shown below. Once you’ve done that, click on go and wait for the upload process to finish.

wordpress-restore-09

A successfully database restoration will show you something similar to the message below

wordpress-restore-10

Once the whole restoration process is done, log into your dashboard and make sure everything is working okay. Don’t forget to browse your site to see if it’s functioning as expected.

This guest post was written by Udegbunam Chukwudi who shares make money online and blogging tips on strictlyonlinebiz.com, his PR 2 dofollow blog. You can also write a guest article and share your WordPress tips.

This is a guest article and represents opinions of the guest author
 

19 comments on “How To Backup and Restore WordPress Database

  1. web-designer-s.com/blog @Sasha Antich says:

    This is nice tip for wordpress owners in the case when something goes wrong.

  2. Andy Brudtkuhl says:

    If you are looking for a backup solution that is not manual – AKA one you will actually use – try the CloudBacks WordPress Backup Plugin. It backs up both files and database to Amazon S3 automatically daily, weekly, or monthly.

  3. Udegbunam Chukwudi says:

    @Andy Brudtkuhl: Thanks for the tip.

  4. Myhouse says:

    I’m working on that plugin also :)

  5. PPC Tips says:

    It is important to back up your database on a regular basis. You never know when something could go wrong.

  6. Blog Tips says:

    backing up is one thing we must never forget or else you’d regret it when unexpected thing happens

  7. Paul Hanna says:

    Back up is very important, i lost a years blogging because i was hacked. I recommend backing up your word press files too

  8. Debajyoti Das says:

    BUT, sometimes database prefix name varies on a new wordpress installation.

    We have to make sure that the tables names match…

    One can find the table names in wp-config file under root.

  9. Tony says:

    A lot of tutorials I have read related to this topic always contain numerous steps that ultimately deter me from really taking the whole process seriously. Hopefully, simpler is better. Thanks for sharing.

  10. Jeremy says:

    Thanks for sharing mate ;)

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php