Support » Installing WordPress » Yet another “error establishing a database connection” post.

  • Hey everyone,

    I know this seems to be a common problem. But when I try to run install.php this is what 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.”

    I am absolutely 100% positive that the name, user, password, and host are all correct in the configuration file. I can see the database in the web-based control panel provided by my web hosting provider — it is not reporting any problems with it, although it doesn’t give me the option to do anything but just create it.

    I have 5 domain names registered with this one host. This one I’m trying to work WordPress with is just one of those five. I don’t know if this is relevent but I thought it was unusual — if I access with SmartFTP or with a web browser, it brings me to a directory that includes directories for all the domains registered to this account (my provider is, and I have to double click two directories away, both named, before I get to the one that actually has my website and WordPress in it.

    As I said I don’t know if that’s relevent but it’s the only unique circumstance I can think of.

    Does anyone have any idea what I need to do here? support only guarantees support responses within 24 hours on weekdays and the person who is the main owner of this setup and this hosting account (not me) is both impossible to get a hold of and very likely just as clueless as I am.

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff


    Are you 100% positive that the value you entered into DB_Host is the host for your database? Or, is it the domain of your website. It should be the host for your database, and that is rarely the domain for your website. A few common values for DB_host are localhost, mysql, and (where “domain=your domain”).

    Is that web-based control panel provided by my web hosting provider cPanel by any chance? If so, check out the Codex for Installing WP with cPanel

    I was reading some of the previously asked and responded to questions by’s support staff and one of them mentioned to someone while addressing a related (but not the same) problem that when configuring stuff to work with the SQL databases that you can create in the control panel, localhost is the correct host. Just to be on the safe side though I tried all of your recommendations and they didn’t work.

    As for the cPanel thing, I don’t see anything that says cPanel anywhere in the control panel or any indication who provided it. I assume that since not even the Help library for the control panel mentions anything about who made it or licensing that it’s proprietary to

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Yet another “error establishing a database connection” post.’ is closed to new replies.