WordPress.org

Ready to get started?Download WordPress

Forums

Cannot select database (5 posts)

  1. liljoeyjordison
    Member
    Posted 8 years ago #

    Am getting the following error:
    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 thedrybar_-_sql database.

    But the data in wp-config.php is correct, and to prove it i took the define('DB_', '') lines, and pasted them into a file called test.php. This file can connect to the database, why can't the installation?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Because your username is not linked to the db.
    Your website needs to make that connection - somewhere there will be an 'add user to db' button.
    Who is your host ?

  3. x-f
    Member
    Posted 8 years ago #

    Umm.. You shouldn't use hyphens in database and table names. That can cause problems. Maybe not in this particular case, however - better without hyphens.

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Hyphens do not matter.
    Ensim databases all have hyphens, usually in the form

    domainname_-_databasename

  5. liljoeyjordison
    Member
    Posted 8 years ago #

    Ok, i have this working now- it was a problem with my host... I mailed them and they fixed it

Topic Closed

This topic has been closed to new replies.

About this Topic