Title: No database connection
Last modified: August 19, 2016

---

# No database connection

 *  [nmgarnett](https://wordpress.org/support/users/nmgarnett/)
 * (@nmgarnett)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/no-database-connection/)
 * Hi
    I recently moved hosting for a site and have subsequently moved back as it
   didn’t work out – I left all files and databases intact and have just changed
   DNS settings back to the original but can’r access the site, getting this message:
 * > Error 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 213.175.211.90.
   > 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 original databases are intact and I have made no changes to the site since
   moving. 213.175.211.90. is the IP address of the server I moved to and am no 
   longer hosted on.
    Any help greatly appreciated as I’m completely stumped Nick
   Garnett

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/no-database-connection/#post-1281558)
 * The information in your wp-config.php must reflect the database at your current
   host. If you don’t know the values for DB_HOST, DB_NAME, DB_USER, and DB_PASSWORD,
   then talk to your host.

Viewing 1 replies (of 1 total)

The topic ‘No database connection’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/no-database-connection/#post-1281558)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
