Title: Restoring database from phpMyadmin
Last modified: August 21, 2016

---

# Restoring database from phpMyadmin

 *  [actualsize](https://wordpress.org/support/users/actualsize/)
 * (@actualsize)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/restoring-database-from-phpmyadmin/)
 * Hello..
 * I’ve read through several forum posts and searched google for an answer to this,
   but with no luck (also a lot of the relevant forum posts on this topic are quite
   old now)
 * My site was hacked recently, so as a precaution I backed up my database (from
   phpmyadmin) and deleted all wordpress files from my home directory.
 * I now have a backup of the database dating from a few days before the hack happened(
   just in case)
 * What I need to do now is this: Re-install WordPress in my home directory and 
   then restore all the data (posts, pages, etc) from the backup of the database.
 * After reading several forum posts and blog posts about this, here’s what I’m 
   currently doing:
    -  I create a new, blank database, db user and password.
       I edit config.php 
      so it points to this new database, and make sure it has the correct prefix.
      Install WP in my home directory. Then I go to PhpMyAdmin and drop all tables
      from the new database. I then restore to the database from the backup which
      I’d previously made from phpMyadmin.
 * When I then go to the domain of my website, it’s just a blank white page.
 * Many of the forum posts I’ve read on this suggest it’s a theme related problem
   and the way to fix it is to change the theme. However, I cannot do this as not
   only is the home page completely blank, but so are all the admin pages (dashboard,
   login screen etc)
 * Some other posts I’ve read suggest that it’s not necessary to run install.php
   after re-uploading the WP files and that I can just make sure config.php is pointing
   to the correct database and all should be fine. But this results in the same 
   situation..
 * Anyway.. long post, sorry about that! But I wanted to clarify as much as what
   I’d already attempted before asking for help..
 * I hope someone can help out with this!
 * Cheers!

Viewing 1 replies (of 1 total)

 *  Thread Starter [actualsize](https://wordpress.org/support/users/actualsize/)
 * (@actualsize)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/restoring-database-from-phpmyadmin/#post-3707369)
 * …Additionally, trying to go straight to the the login page (after restoring the
   database) gives me this:
 * >  “Not Found
   > The requested URL /wp-login.php was not found on this server.
   > Additionally, a 404 Not Found error was encountered while trying to use an 
   > ErrorDocument to handle the request.”
 * …Looking at the home directory via FTP, I can see that wp-login.php is _definitely_
   there.. Weird..

Viewing 1 replies (of 1 total)

The topic ‘Restoring database from phpMyadmin’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [phpmyadmin](https://wordpress.org/support/topic-tag/phpmyadmin/)
 * [white screen](https://wordpress.org/support/topic-tag/white-screen/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [actualsize](https://wordpress.org/support/users/actualsize/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/restoring-database-from-phpmyadmin/#post-3707369)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
