Title: Database Error &#8211; can&#039;t select database
Last modified: August 31, 2016

---

# Database Error – can't select database

 *  [brittburrows](https://wordpress.org/support/users/brittburrows/)
 * (@brittburrows)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-cant-select-database/)
 * My site was working 100% fine when suddenly last night I am prompted with an 
   error message when I try to login…
 * _“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 medievc2\
   _wor2 database.
 * Are you sure it exists?
    Does the user medievc2_wor2 have permission to use the
   medievc2_wor2 database? On some systems the name of your database is prefixed
   with your username, so it would be like username_medievc2_wor2. Could that be
   the problem?”
 * I checked with the host of the site and everything is completely fine, nothing
   has been changed recently. Any ideas on what to do? This came out of nowhere.
 * When you go to the site you see this: **Error establishing a database connection**

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-cant-select-database/#post-7056479)
 * In the MySQL settings part of your hosting account’s control panel, make sure
   that the user medievc2_wor2 have permission to use the medievc2_wor2 database.
 * Also, make sure that the username and password are correct, and that both are
   recorded correctly in your wp-config.php file.
 * If phpMyAdmin is available in your hosting account’s control panel, also see 
   if you can access the database using the same username and password you entered
   into wp-config.php.
 * If all of the above is correct, you will need to ask your hosting provider to
   sort this out for you.

Viewing 1 replies (of 1 total)

The topic ‘Database Error – can't select database’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-cant-select-database/#post-7056479)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
