Title: Error establishing a database
Last modified: August 18, 2016

---

# Error establishing a database

 *  [Grasshopper](https://wordpress.org/support/users/grasshopper/)
 * (@grasshopper)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/)
 * I am new to blogging and have no idea what I’ve done wrong! I can sign in, but
   that is it. My blog won’t show anything and I get 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 mysql. 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.
 * I know the address, password, etc. I don’t know what to do. Please help

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/error-establishing-a-database-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-establishing-a-database-2/page/2/?output_format=md)

 *  [quickster](https://wordpress.org/support/users/quickster/)
 * (@quickster)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314780)
 * you too!…lol… well I hope somebody helps us! will be checking back soon S..O..
   S
 *  [twat](https://wordpress.org/support/users/twat/)
 * (@twat)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314782)
 * Hi,
 * My only immediate, tentative suggestion would be to open wp-config.php in your
   favorite text editor and make sure that you have typed the database name, user
   name and passwords correctly.
 * If you were given this information from your host and it still isn’t working,
   maybe you could ask them whether you need to use a different entry for ‘localhost’(
   it happens… though admittedly, I’ve never encountered it myself).
 * Kat, the Twat
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314786)
 * Grashopper: _I can sign in, but that is it. _
    Sign in where? If there is no 
   DB connection where do you sign in?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314787)
 * Put here (copy/paste) your wp-config.php file – or at least the portion that 
   you’ve edited.
    (where the password is put *****)
 *  [quickster](https://wordpress.org/support/users/quickster/)
 * (@quickster)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314790)
 * Ok TWAT, not like your name isn’t as trustworthy as your fix… I tried it and 
   for some damn reason (maybe because I’m tired of trying) I decided that the encryption
   user name and password in wp-config.php was bugged and put my regular log-in 
   and pw in there instead to find “Nothing” Zelch, Twatted!… lol… Don’t know what
   else to do know, I could go play a game online and wait!… sheesh, pathetic…
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314791)
 * _I decided that the encryption user name and password in wp-config.php_
    ? hmm…
   You need the database username and password for there, no encryption. Just plain
   typing.
 *  [quickster](https://wordpress.org/support/users/quickster/)
 * (@quickster)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314803)
 * I guess I do but I never assigned one. My Host did that for me, and than again
   I guess having so many php stuff in my database could of done it!… I don’t know…
   Cause now all my php enabled stuff won’t work, my calendar, my forum, the blog…
   sheeesh… I give up! Thanks for the help ne-wayz, “Cheers” 8(
 *  [dlavrinc](https://wordpress.org/support/users/dlavrinc/)
 * (@dlavrinc)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314805)
 * Grasshopper:
 * I just posted this [http://wordpress.org/support/topic/55743?replies=4](http://wordpress.org/support/topic/55743?replies=4)
   about 40 minutes ago. Are you hosted thru Yahoo?
 * If so, I think the server may be down.
 * I’ll check back tomorrow to confirm.
 *  [ralf](https://wordpress.org/support/users/ralf/)
 * (@ralf)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314807)
 * I’m also also at Yahoo
 * I guess you are right the server may be down (for about 8 hours now).
 * Did not expect this by using Yahoo, bad bad bad
 * How to contact Yahoo?
 *  [brittanie](https://wordpress.org/support/users/brittanie/)
 * (@brittanie)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314811)
 * Hey, did you both allow Yahoo to install WP for you, or did you install it yourself?
   I ask because my site has been on Yahoo for a while, but when WP released 2.0
   and started “partnering” with yahoo, I decided to use their install instead of
   my own.
 * BIG MISTAKE. Nothing ever worked right, so I finally uninstalled Yahoo’s installation
   and reinstalled WP 2.0 on my own (on the same server) and have not had any complaints
   since.
 * I am currently using Yahoo but am not having the same error you guys are getting.
   See for yourself: rulebrittaniea.org.
 * Log onto Yahoo Web Hosting and under your root directory find the file called
   wp-config. Inside this file you can see the password and user name Yahoo set 
   up (assuming you did not do this yourself) for your MYSQL database.
 * Yahoo also has 24-hour telephone support. You can call them at 1-866-800-8092(
   you REALLY have to search to find this info on their web site). You can also 
   go through the “Help” section on Yahoo web hosting and fill out a help request
   form. Lastly, you can e-mail their php/mysql team at wh-php (at) yahoo-inc (dot)
   com. This is likely the fastest way to get help, as the telephone support will
   probably point toward this e-mail as well.
 *  [ralf](https://wordpress.org/support/users/ralf/)
 * (@ralf)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314817)
 * thanks brittanie, I try
    It looks like Yahoo did a update some hours ago b.t.
   w. I used the Yahoo install
 *  [ralf](https://wordpress.org/support/users/ralf/)
 * (@ralf)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314823)
 * [@brittanie](https://wordpress.org/support/users/brittanie/)
    do you mean wp-
   config.php, there is no wp-config in the root.
 * [@moshu](https://wordpress.org/support/users/moshu/)
    wp-config.php is unchanged
   for 14 days now there is no database username and password in there
 *  [mythicaldude](https://wordpress.org/support/users/mythicaldude/)
 * (@mythicaldude)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314832)
 * I am having the same problem with my WP site at [http://www.mythicaldude.net](http://www.mythicaldude.net)–
   hosted at Yahoo. The site was fine 4 or 5 hours ago and I didn’t change anything.
 * Yahoo customer service finally gave me the wh-php AT yahoo-inc.com address, but
   only after 3 calls (from Cambodia). The first person I talked to there – Linda–
   told me there was no problem on their end and that I should uninstall my blog.
   What crappy advice!
 * The last person I spoke with gave me the address and acknowledged that there 
   is a probelm at Yahoo and that their PHP group is “working on it”.
 * So now I guess we just have to wait. So it goes.
 *  [twat](https://wordpress.org/support/users/twat/)
 * (@twat)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314852)
 * Shoot, I honestly didn’t mean to twat you! I should have been more clear as to
   whose username and password to make sure was there – i.e. not yours! Rather, 
   the database’s username and password, and, as moshu specified: not encrypted.
 * [@ralph](https://wordpress.org/support/users/ralph/): No wp-config.php in the
   WordPress root directory? Where is your wp-config.php? And what does it contain,
   if not the name of the database and the username and password that you use to
   connect to it?
 * Kat, the Twat
 *  [headlessspider](https://wordpress.org/support/users/headlessspider/)
 * (@headlessspider)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/#post-314865)
 * my guess would be yahoo is starting to upgrade but had a glitch or two.
 * i think there’s a problem connecting to the mysql database because i cannot
 * 1. login to phpmyadmin to administer the mysql database
    2. create a new wordpress
   blog 3. access the current blogs
 * ugh!
 * tried sending mail but no response yet. maybe i’ll try that pgp guys in a while.

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/error-establishing-a-database-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-establishing-a-database-2/page/2/?output_format=md)

The topic ‘Error establishing a database’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 23 replies
 * 12 participants
 * Last reply from: [headlessspider](https://wordpress.org/support/users/headlessspider/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/error-establishing-a-database-2/page/2/#post-315031)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
