Support » Installing WordPress » Unexplainable database connection error during installation

  • This is the most frustrating experience I’ve had yet with WordPress.

    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 This could mean your host’s database server is down.

    I have triple-checked my username and password; they are correct. I have tried resetting my database password, waiting, and then re-upping my config file. I have tried taking out the Authentication keys. I have tried deleting my entire database and WordPress installations and starting over from scratch with a new one, and it still gives me this error. I just set up a client’s WordPress yesterday with the regular method and everything went just fine; mine will inexplicably not allow me to the installation page.

    The only two possible explanations I can come up with are these:
    1. A previous database is still in the process of deletion and this is somehow affecting the connection with the new database; I cannot see why this would be so but stranger things have happened.
    2. This is the second time I have installed wordpress on this directory (after having wiped it clean before) and there is some residual code resting on the server that is interfering. This is a guess based on database matters, which are beyond my understanding.

    FYI this is on a server and yes, I have used the actual database hostname rather than “localhost.”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Once you create the database, 1and1 gives you access to use phpMyAdmin to look at the database. Can you do that?

    Yes MichaelH, I can get to phpMyAdmin just fine. Taking a look at my specific database that I want to install WordPress to, it shows “no tables found” in my database structure.

    Should I create a new table?

    Should I create a new table?

    No need to do that as the wp-admin/install.php process will create needed tables. sounds like a reasonable DB_HOST value but again you should check your wp-config.php DB_HOST, DB_NAME, DB_USER, and DB_PASSWORD values. Note: the various ‘security keys’ have no impact on this problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unexplainable database connection error during installation’ is closed to new replies.