Title: Can&#8217;t select database
Last modified: August 18, 2016

---

# Can’t select database

 *  [cw](https://wordpress.org/support/users/cw/)
 * (@cw)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/cant-select-database/)
 * I get this 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 justcw_wordpress 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?”
 * But that’s not it. I have the database set up (this is on my home machine) to
   match what I’m expecting on my virtual server account, which is “justcw_wordpress”
   and I can connect to it from the command line. I’ve got connection to the server,
   as it says the username and password are OK, but it won’t recognize the database.
 * Anybody dealt with this?
 * Thanks
    CW

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [cw](https://wordpress.org/support/users/cw/)
 * (@cw)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/cant-select-database/#post-147072)
 * Perhaps I should have mentioned that this is WP 1.5, MySQL 4.0.20d, Win2k, Apache
   1.3.26 and the server and database are working with other homebrewed sites.
 *  [tracerbullet](https://wordpress.org/support/users/tracerbullet/)
 * (@tracerbullet)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database/#post-148030)
 * I just went through this exact same problem, and managed to fix it. If you are
   able to control your MySQL databases through your cPanel (which is what I used),
   make sure that the username you have set up, has the needed permissions on the
   database. For me, I simply missed clicking “save permissions”.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database/#post-148031)
 * [http://www.tamba2.org.uk/wordpress/](http://www.tamba2.org.uk/wordpress/)
    cpanel/
   vdeck / plesk are covered there.
 * You need to connect the user with the db.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can’t select database’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database/#post-148031)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
