Forums

Error page 'Error establishing a database connection' (5 posts)

  1. devonanne
    Member
    Posted 3 years ago #

    I am completely new at this, so help would be much appreciated!

    I uploaded the WordPress files to my site using FTP. Now when I try to access the install.php file, I get an error:

    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 p3nl50mysql9.secureserver.net. 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?

    I'm sure my username and password are correct. I'm using Godaddy hosting, and I checked the info for my mySQL database and it gives the host name as "p3nl50mysql9.secureserver.net" so I replaced "localhost" in the wp-config.php file. I got the same error before when it was still "localhost". I also double-checked the wp-config file to make sure permissions were set correctly.

    I'm not sure what to try next - any suggestions? Thanks in advance.

  2. moshu
    Member
    Posted 3 years ago #

    Are you on Windows or Linux hosting package?

  3. lindros2
    Member
    Posted 3 years ago #

    I just had the same exact problem (using MySQL 5)

    After banging my head against the wall a couple of times, I had to use

    "localhost:/tmp/mysql5.sock" (without the quotes)

    That should be all you need. And you won't even need a remote connection (unless GoDaddy forces you to use a remote connection..)

  4. devonanne
    Member
    Posted 3 years ago #

    Hm, I tried "localhost:/tmp/mysql5.sock", but still no luck.

    I'm using Linux hosting.

  5. devonanne
    Member
    Posted 3 years ago #

    Nevermind, it's working now! Thanks lindros2 - not sure what I did wrong the first time, but your solution is working :) You just made my day, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic