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

---

# Can’t select database

 *  [rahulkhadaliya](https://wordpress.org/support/users/rahulkhadaliya/)
 * (@rahulkhadaliya)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-19/)
 * Hi GUys, I have been looking an answer to the following error but couldn’t find
   any. Need help
    thanks..
 * 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 blog database.
 *  * Are you sure it exists?
    * Does the user rahulkhadaliya have permission to
   use the blog database? * On some systems the name of your database is prefixed
   with your username, so it would be like username_blog. Could that be the problem?

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-19/#post-1083266)
 * either the database name in wp-config.php is not correct or your user was not
   granted ALL permissions
 *  [debbrancheau](https://wordpress.org/support/users/debbrancheau/)
 * (@debbrancheau)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/cant-select-database-19/#post-1083463)
 * I was having this problem as well when I was moving my site to a new domain. 
   Since the domain name was different, the database name was different as well 
   with my hosting company.
 * However, even though I changed the database name in the wp-config.php file, when
   I backed up my database from my original site (site1.com), I downloaded the zip
   file site1_wordpress.sql.
 * But I forgot when I imported the file through PHPMyAdmin to the new site to change
   the name of the file to the name of the new database/site (site2.com). So the
   database file I imported should have been site2_wordpress.sql.
 * I don’t know if that helps anyone, but I thought I’d post it just in case.
 *  [dgoude266](https://wordpress.org/support/users/dgoude266/)
 * (@dgoude266)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/cant-select-database-19/#post-1083475)
 * I’m having the same problem with mine. I’m using GoDaddy. Went in and created
   the MySQL database, gave myself all of the permissions… edited everything properly
   in the config.php file and now I’m all out of clues as to next steps. Any other
   advice would be greatly appreciated.
 * How would I know if I didn’t grant myself ALL permissions?

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

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

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 4 participants
 * Last reply from: [dgoude266](https://wordpress.org/support/users/dgoude266/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/cant-select-database-19/#post-1083475)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
