WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection! (6 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I've looked through this entire help section and noones resolved this issue :(!
    when I load /wp-admin/install.php I get this error:
    Error establishing a database connection! This probably means that the connection information in your wp-config.php file is incorrect. Double check it and try again.
    Are you sure you have the correct user/password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    I've tried on 2 different mysql databases on 2 different servers, its not working!
    I've assigned the user to the database and I know my mysql works cos I've got loads of other scripts that work fine in other databases! the server is running and I don't have the foggiest what the hostname is!! help me! this is dammned annoying!

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Email the host for the details ?
    If it's not localhost, it could be *anything*.

  3. StupidScript
    Member
    Posted 10 years ago #

    It looks like the user must be an actual user with a real password, not just a mySQL user. I was receiving the same error until I made a "real" wordpress user and password, then it all worked.

  4. xenakes
    Member
    Posted 10 years ago #

    How do you make a wordpress user if you can't get wordpress started?

  5. xenakes
    Member
    Posted 10 years ago #

    I figured out my problem. It seems I was part of the 1%. I had to change the DB_HOST field . My final settings were like this.
    // ** MySQL settings ** //
    define('DB_NAME', 'xenakes'); // The name of the database
    define('DB_USER', 'xxxxxxxxxxx'); // Your MySQL username
    define('DB_PASSWORD', 'xxxxxx'); // ...and password
    define('DB_HOST', 'mysql.xenakes.com'); // 99% chance you won't need to change this value
    I was thrown off because in my phpBB installs my DB_Name was in the DB_Host format. After this change everything worked fine.

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    dsfasd

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.