WordPress.org

Ready to get started?Download WordPress

Forums

Can’t select database (4 posts)

  1. brenoc01
    Member
    Posted 2 years ago #

    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?

    Thanks
    Brendan

    redacted db information - moderator

  2. Marventus
    Member
    Posted 2 years ago #

    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?

  3. Marventus
    Member
    Posted 2 years ago #

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

  4. loughcorrib
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic