Click to go to USFreeAds' website
About
This website is all about strategies to help you grow your niche store empire. I have many Build A Niche Store sites and use the strategies that I share here.
Newsletter
Subscribe to my posts and get all of the latest tips and strategies sent directly to your email!
Delivered by FeedBurner
RSS Feed
Get the most recent posts and comments sent to you directly by subscribing to my RSS feeds!
Subscribe to RSS! Subscribe to RSS Comments!

Feb
13

How to restore your database from cPanel

RochelleHow To...

The day may come when you need to restore a database. If you have already backed up your database then this will be a fairly simple process.

If, however, you haven’t backed up your databases and need to restore one (or more) then your hosting company can probably do this for but they will likely charge a fee. Read my instructions on how to do this at http://www.nichestorestrategies.com/how-to-backup-your-sites-database/ and save your hard-earned money by doing it yourself.

I use HostGator so the images and instructions below are for this host. If you host with a different company then your steps may differ.

 

My instructions to restore your database from cPanel:

Step One
  Log in to your hosting account’s cPanel.
   
  Click on the ‘Backups‘ icon or link:
Image of HostGator's Backups link
   
  Look for the ‘Restore a MySQL Database‘:
Image of HostGator's Restore Database
   
  Click the ‘Browse‘ button to locate the file for the database you want to restore and then click the ‘Upload‘ button.
Step Two
  You will now see something that looks similar to this image:
Image of HostGator's Database that's being restored
   
  Press your browser’s back button to return to the previous screen.
   
  Chances are that is all you need to do. View your site and see if it looks correct or if there are errors. If all looks the way it should then you are done. But if you see errors then you may need to do a little more work.
Step Three
  Go to cPanel’s Home page and click on the ‘MySQL® Databases‘ link or icon:
Image of HostGator's Databases link
   
  Scroll down until you find the database you just restored. When you find it look to see if there is a user associated with the database. If there is you will see the following information directly under the database:
Image of wording you should see under a database
   
  Here is an image of a database that doesn’t have a user associated with it and one that does directly under it:
Image of a database with no user
   
  The database in the picture above called neeznood_testdatabase does not have any users. If this was the database I just restored then my niche store would not function and I would see errors on the site.
   
  Scroll further down on the screen and create a user and password for the restored database.
   
  Save the new user and click the ‘Go Back‘ link.
   
  Scroll down to the bottom and add the user to the database. Click the ‘Add User To Database‘ button then click the ‘Go Back‘ link.
   
  Scroll down to find your restored database. Hopefully it now has a user associated with it. Here is an image of my database with a user added to it:
Image of a database with a user
.

Hopefully that will be all your database needs to resume working. If it doesn’t then I am the wrong person to turn to. The above is the extent of my knowledge on this. I would suggest contacting your hosting company for additional help.

Rochelle

Related Posts:

  • How to Restore Your Site from cPanel
  • How to Partially Restore Files or Folders
  • How to Move to a New Host
  • How to Reset Your Database When You are Locked out of Admin
  • How to Create a Raw-BANS Folder in Your cPanel
  • How to Backup Your Site from cPanel
  • How to Backup Your Site’s Database
  • How to copy the contents of Raw-BANS for a new BANS site
  • How to Add Mark’s Sitemap to Your Site
  • How to Hide Pages and Add Them to Your Site’s Footer
  • RSS feed | Trackback URI

    3 Comments »

    Name (required)
    E-mail (required - never shown publicly)
    URI
    Subscribe to comments via email
    Your Comment (smaller size | larger size)
    You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

    Trackback responses to this post