Support » Installing WordPress » Can’t select database

  • Hi,

    I am installing wordpress on hostgator I am using the following details (from my database)
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘redacted‘);

    /** MySQL database username */
    define(‘DB_USER’, ‘redacted‘);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘redacted‘);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    problem is I am getting this error, anyone know what I need to do?

    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 redacted database.

    Are you sure it exists?
    Does the user redacted have permission to use the redacted database?
    On some systems the name of your database is prefixed with your username, so it would be like redacted. Could that be the problem?


    redacted db information – moderator

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Brendan,

    If that is your actual DB info, I would strongly recommend not to post your Database username and/or password on a public forum like this one, not ever: it is like an open invitation to get hacked.
    As for your issue, if you are using cPanel and created the DB and DB user manually, did you make sure to add the DB user to the DB where your WP install sits?

    Any progress on this, Brendan? Do let me know.

    Can you use phpmyadmin and see your database and settings from there

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