Title: Restoring
Last modified: August 18, 2016

---

# Restoring

 *  [envyyy](https://wordpress.org/support/users/envyyy/)
 * (@envyyy)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/)
 * I am trying to recover my wordpress, but It doesnt seem to work. I restored the
   sql stuff, but I get this when I go to my site.
 * rror establishing a database connection
 * This either means that the username and password information in your wp-config.
   php file is incorrect or we can’t contact the database server at localhost. This
   could mean your host’s database server is down.
 *  * Are you sure you have the correct username and password?
    * Are you sure that
   you have typed the correct hostname? * Are you sure that the database server 
   is running?
 * If you’re unsure what these terms mean you should probably contact your host.
   If you still need help you can always visit the WordPress Support Forums.
 * …my site is [http://envyyy.com/nerd](http://envyyy.com/nerd)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Michael Bishop](https://wordpress.org/support/users/miklb/)
 * (@miklb)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/#post-284876)
 * So the question lies, are you sure your config file contains the proper database
   info. Did you change the DB name, or the username, or PW when you restored the
   DB? If so, you need to make sure those are changed on the config file as well.
 *  Thread Starter [envyyy](https://wordpress.org/support/users/envyyy/)
 * (@envyyy)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/#post-284877)
 * Well, my cpanel login is now ‘envyyy’, but I did change it from what it was before.
   This is what I have in the conf file.
 * define(‘DB_NAME’, ‘envyyy_wrdp2’); // The name of the database
    define(‘DB_USER’,‘
   envyyy_envyyy’); // Your MySQL username
 * Here’s a pic of my sql, everything seems to match up.
 * [http://img513.imageshack.us/img513/6492/sql4ac.jpg](http://img513.imageshack.us/img513/6492/sql4ac.jpg)
 *  Thread Starter [envyyy](https://wordpress.org/support/users/envyyy/)
 * (@envyyy)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/#post-285236)
 * nothing yet???
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/#post-285238)
 * “nothing yet” – it gets busy here 🙂
 * Check for whitespace in your wp-config.php
    Check the server absolutely definitely
   is actually working What else have you tried ?
 *  Thread Starter [envyyy](https://wordpress.org/support/users/envyyy/)
 * (@envyyy)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/#post-285257)
 * Whats white spaces. Just blanks spaces like if someone were using the spacebar,
   right?
 * If so, nah, there werent any of those :(, Im not sure what else it could be. 
   I know the server is working 100%
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/#post-285258)
 * All we cannot see from what you have provided is the password. Everything else
   looks great .. have you triple-checked it ?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Restoring’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/restoring/#post-285258)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
