Support » Installing WordPress » Error establishing a database connection!

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Mark (podz)


    Support Maven

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

    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.

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

    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’, ‘’); // 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.



Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error establishing a database connection!’ is closed to new replies.