Title: Database Error?
Last modified: August 30, 2016

---

# Database Error?

 *  Resolved [nkansal](https://wordpress.org/support/users/nkansal/)
 * (@nkansal)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/database-error-200/)
 * My site is [http://www.thenewto.com](http://www.thenewto.com)
    I haven’t been
   able to access it since at least 3 hours now.
 * When I click on the above link, I get “Error establishing a database connection”
 * When I try to access the wp-admin link,
    I get “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 localhost. This
   could mean your host’s database server is down.”
 * Is the server down?
    I’m not tech savvy at all, please help.

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

 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/database-error-200/#post-6787109)
 * to check your server status, contact the company who is hosting your website.
   
   volunteers on the troubleshooting forum do not have access to your hosting company.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/database-error-200/#post-6787145)
 * In nutshell, you’re getting this error ( “Error establishing a database connection”)
   because WP is unable to establish a database connection. Reason why WP is unable
   to establish a database connection can vary. It could be that your database login
   credentials are wrong or have been changed. It could be that your database server
   is unresponsive. It could be that your database has been corrupted. Majority 
   of the times this error happens because of some sort of server error. Also, there
   could be other factors as well. To troubleshooting this problem:
    – double check
   your [wp-config.php file settings ](http://codex.wordpress.org/Editing_wp-config.php)
   for the database name, database username and database password, and the host 
   name (e.g., “localhost” Vs. something else). This is where most errors occur.–
   Then make sure wp-config.php is in right location. – Then check that you don’t
   need to change the database host from “localhost” to something else. You can 
   get that info from your hosting provider. – Check you have actually created a
   database with the same database name as is in your wp-config.php file. – Last,
   but not least, if all that information is correct your database probably has 
   a problem with it. Contact your hosting provider if the database server is offline(
   if the problem suddenly happened), or if they have any other problem at their
   end, or they made any changes to your account, or if there are any limitations/
   restrictions, or if the hosting package is set to Windows and not Linux, etc.–
   There are also many threads on this topic on these forums: [http://wordpress.org/search/Error+establishing+a+database+connection?forums=1](http://wordpress.org/search/Error+establishing+a+database+connection?forums=1)
 *  Thread Starter [nkansal](https://wordpress.org/support/users/nkansal/)
 * (@nkansal)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/database-error-200/#post-6787209)
 * Thank you so much for your help. I guess the server was down, because I can now
   access my site.
    But I’m saving your responses for the future.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/database-error-200/#post-6787210)
 * you are welcome 🙂

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

The topic ‘Database Error?’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/database-error-200/#post-6787210)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
