Title: error connecting to database
Last modified: August 18, 2016

---

# error connecting to database

 *  [bodhi](https://wordpress.org/support/users/bodhi/)
 * (@bodhi)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database/)
 * no changes at all, everything was working one minute, then not the next. I’m 
   getting:
 * “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 xxx.xxx.com.”
 * Any ideas?

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database/#post-177274)
 * Contact your host. Maybe there is an upgrade or maintenance going on…
 *  Thread Starter [bodhi](https://wordpress.org/support/users/bodhi/)
 * (@bodhi)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database/#post-177275)
 * the control on that situation is that i have other wp databases on the same server
   and they’re functioning.. i wish i had more info to provide, but i just don’t.
   everything was peachy and then i get a call that it suddenly stopped working./
   shrug
 *  [fuzzy_logic](https://wordpress.org/support/users/fuzzy_logic/)
 * (@fuzzy_logic)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database/#post-177280)
 * If I were you I’d add another user to the database and try to connect through
   that.
 *  Thread Starter [bodhi](https://wordpress.org/support/users/bodhi/)
 * (@bodhi)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database/#post-177470)
 * thanks for the suggestion – i tried it with no luck. i logged into the MySQL 
   database and all the info is there. i wonder how hard it would be to dump everything
   and restore it. i guess that depends on how my host is set up. i have all my 
   wp config stuff saved, and i have the MySQL database backed up.. i guess i can
   try to figure out how to restore it. =(
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database/#post-177471)
 * Have you downloaded and checked the wp-config file ?
    I’ve known it where a host
   moved a domain and screwed the files up.

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

The topic ‘error connecting to database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-database/#post-177471)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
