Title: Can’t select database
Last modified: August 21, 2016

---

# Can’t select database

 *  Resolved [josephmugume](https://wordpress.org/support/users/josephmugume/)
 * (@josephmugume)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cant-select-database-40/)
 * Hello, I am having trouble installing my wordpress on the local machine, i am
   getting this error response…
 * 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 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?
 * Please note that i created a database name in mysql called “wordpress”, my username
   and password are correctly configured in the config.inc.php file as well. i am
   using the database host as “localhost” since i am running this on my local machine.
 * i read previous forums on the same topic/issue, but cant seem to get a direct
   solution to this. What could be the problem? please advise…

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

 *  Thread Starter [josephmugume](https://wordpress.org/support/users/josephmugume/)
 * (@josephmugume)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cant-select-database-40/#post-5126851)
 * Please also note that i get this error when am trying to create the wp-config.
   php file via the “Create a Configuration File button”
 *  [akhilesh1010](https://wordpress.org/support/users/akhilesh1010/)
 * (@akhilesh1010)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cant-select-database-40/#post-5126852)
 * you are getting this error because user have no permissions for this database
   which you are using. You should check user and database permissions for selected
   database on your hosting cpanel.
 *  Thread Starter [josephmugume](https://wordpress.org/support/users/josephmugume/)
 * (@josephmugume)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cant-select-database-40/#post-5126853)
 * thanks akhilesh1010, how can I access the cpanel? coz am not using any hosting
   service yet, am running on local host…
 *  Thread Starter [josephmugume](https://wordpress.org/support/users/josephmugume/)
 * (@josephmugume)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cant-select-database-40/#post-5126909)
 * i found a solution, checked mysql settings and reconfigured the setup

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

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

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 2 participants
 * Last reply from: [josephmugume](https://wordpress.org/support/users/josephmugume/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/cant-select-database-40/#post-5126909)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
