Error establishing a database connection (5 posts)

  1. travisemergency
    Posted 10 years ago #

    I set up my MySQL database in cPanel and modified the wp-config.php file, and then uploaded the files, but when I try to access /wp-admin/install.php, I get this 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 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.

  2. amory
    Posted 10 years ago #

    are you sure your info is correct? what host/server are you using (specs)? It's possible that the server's mysql is temporarily down.

  3. James Huff
    Volunteer Moderator
    Posted 10 years ago #

    That means that one of the values you entered into wp-config.php is incorrect. Try following this installation guide: http://www.tamba2.org.uk/wordpress/cpanel/

  4. GoodHealthToYou
    Posted 10 years ago #

    Thank you so much macmanx! :)

    Your resource was a blessing.


  5. GoodHealthToYou
    Posted 10 years ago #

    Thanks guys and gals!

    You all are very supportive.
    An hour ago I didn't know anything about setting up a php file,
    now I'm more confident.
    Thanks to you all here at WordPress forum
    I was going to hire someone to install it for me. :)
    I love it!

    This support forum is the bomb! :)

    Allan Angkham

Topic Closed

This topic has been closed to new replies.

About this Topic