WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (13 posts)

  1. smalltownlosers
    Member
    Posted 7 years ago #

    After uploading my files and attempting to access http://www.smalltownlosers.com/wp-admin/install.php

    "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.

    * 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 have the correct database name, user name, and password, so I assume the problem is with the localhost.
    The problem is, I have no idea how to find my localhost info. Any tips?

  2. omgitztrey
    Member
    Posted 7 years ago #

    localhost is the computer that the software locally resides in. There's really no info you need to find for localhost. If you don't want to use 'localhost' then try 127.0.0.1 it still refers to localhost eitherway. It was to be a configuration problem with the db.

  3. jannette
    Member
    Posted 7 years ago #

    I get the same error message but all my info matches. And 127.0.0.1 didn't work either. :(

  4. rudolf45
    Member
    Posted 7 years ago #

    In 99% of similar cases the info is not correct due to a human error (typo, case etc.)
    In the remaining 1% the error can be caused by
    - DB user not added to the DB
    - DB user not having ALL privileges

    Are you sure it has to be localhost? On many hosts that's not true. Who is your host? (Did you search here for any specifics posted eventually about that host?)

  5. jannette
    Member
    Posted 7 years ago #

    my host is a small orange. I will search right now.

  6. rudolf45
    Member
    Posted 7 years ago #

    They have a very good reputation around here!
    So, we are back to the user error hypothesis :)

  7. jannette
    Member
    Posted 7 years ago #

    now what? I've checked, and the BD User is added to the DB AND it has ALL privileges.

  8. whooami
    Member
    Posted 7 years ago #

    i'm hosted on aso, that line should read:

    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    if you are using that, and its not working - one of the other three is the problem.

  9. jannette
    Member
    Posted 7 years ago #

    okay.... I swear I have checked, I even tried using another user, I scanned wp-config.php for typos, but really there is none. Could this mean that aso's database server is down? :(

  10. whooami
    Member
    Posted 7 years ago #

    >> Could this mean that aso's database server is down?

    No.

    what server on you on?

    For future ref. you can always refer to this to the status of any of their boxes:

    http://status.asmallorange.com/

    I have twenty bucks that says your username or database name is incorrect :)

    If you want private help, I'm willing to help you however you will need to contact me:

    whoo -(at)- village.idiot.org

    I would need to know what information aso gave you when you signed up, etc.. so if you wouldn't be comfortable sharing that information with me, there is always the option of submitting a support ticket to them via their web site (you will need to look for that page off their own main web site)

    There's also install for free, but just so ya know, they will need the same information I would.

  11. Isura
    Member
    Posted 7 years ago #

    I had the same problem. I contacted support, and my webhost said that it was necessary to use the host's server name. I use IX hosting, and had to use mysql26.ixwebhosting.com instead of localhost. Worked right away with that modification. Hope that helps.

    I have twenty bucks that says your username or database name is incorrect :)

    I'll take that bet :)

  12. whooami
    Member
    Posted 7 years ago #

    I was replying to jannette, who's using the same host as me.

  13. jannette
    Member
    Posted 7 years ago #

    never mind I deleted and re-installed. everything works fine now.

Topic Closed

This topic has been closed to new replies.

About this Topic