• I created a database and user account just now to install WordPress on my domain. It didn’t have any problem with the user account, but it doesn’t seem to be able to find the database. Anyone know of a way to fix this? My domain is through bluehost if that helps anyone. Here’s the text of the error message:

    Can’t select database

    We were able to connect to the database server (which means your username and password is okay) but not able to select the eriknels_blog database.

    Are you sure it exists?
    On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?
    If you don’t know how to setup a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Something is probably wrong in your wp-config.php.

    The DB_HOST should be localhost.

    Make sure there are no extra spaces in your definitions.

    Meaning
    define('DB_NAME', 'eriknels_blog ');
    or
    define('DB_NAME', ' eriknels_blog');

    are both wrong because there is an extra space between the ‘ marks in both examples.

    Even with everything correct, no spaces, proper DB names, etc, upgrading WordPress ends in the “Can’t select database” error as invadergii describes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t select database’ is closed to new replies.