Title: Installation problem: Can&#8217;t select database
Last modified: August 19, 2016

---

# Installation problem: Can’t select database

 *  Resolved 814714
 * [17 years, 10 months ago](https://wordpress.org/support/topic/installation-problem-cant-select-database/)
 * I have downloaded WAMP, installed the mysql, php & apache products.
 * I am trying to connect to the DB in order to perform installation. I have edited
   the config file, but WP is unable to select the database. I know it exists, and
   the user has permission, so I guess that leaves the DB NAME? I’ve tried root_wordpress
   as the DB name, no luck.
 * Would appreciate some help with this matter. I’ve installed WP a number of times,
   no problem. This is my first time locally however..
 * ========================
    The error 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 _wordpress database.
 *  * Are you sure it exists?
    * Does the user root@localhost have permission to
   use the _wordpress database? * 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?
 * =================

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 10 months ago](https://wordpress.org/support/topic/installation-problem-cant-select-database/#post-823861)
 * What is the actual database name? Use that.
 * Since it connected okay, then the dbhost, username, and password are correct.
   You simply have the database name wrong.
 * “root_wordpress” makes little sense as a database name. Same for “_wordpress”.
   Did you perhaps just name it “wordpress”? You need *only* the database name, 
   not any other stuff thrown in.
 *  Thread Starter 814714
 * [17 years, 10 months ago](https://wordpress.org/support/topic/installation-problem-cant-select-database/#post-823863)
 * I have tried using the database name for DB name, the above error message was
   taken when I was experimenting with a variety of DB names, to see if it was a
   unknown convention causing issues.
 *  [Jay Mayu](https://wordpress.org/support/users/mayooresan/)
 * (@mayooresan)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/installation-problem-cant-select-database/#post-823867)
 * try the user name “root” as I remember thatz the user name. and if you have not
   configrd ya MY SQL then there’ll be no password for ya DB. leave it empty.
 *  Thread Starter 814714
 * [17 years, 10 months ago](https://wordpress.org/support/topic/installation-problem-cant-select-database/#post-823869)
 * > try the user name “root” as I remember thatz the user name. and if you have
   > not configrd ya MY SQL then there’ll be no password for ya DB. leave it empty.
 * That did it! Thank you very much. In phpmyadmin it has root@localhost as the 
   user, but using just root instead fixed it.
 * Once again, thank you.

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

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

## Tags

 * [Can't select database](https://wordpress.org/support/topic-tag/cant-select-database/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: 814714
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/installation-problem-cant-select-database/#post-823869)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
