Title: Database selected error
Last modified: August 18, 2016

---

# Database selected error

 *  [ragbone](https://wordpress.org/support/users/ragbone/)
 * (@ragbone)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/database-selected-error/)
 * How come it keeps telling me that No Database is selected when I’ve already selected
   my database.
    what seems to be the problem here???????

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

 *  [Mike Little](https://wordpress.org/support/users/mikelittle/)
 * (@mikelittle)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/database-selected-error/#post-24686)
 * Did you copy wp-config.sample.php to wp-config.php and edit it to match your 
   settings?
    You put your own user, password, and database name in there. Mike
 *  Thread Starter [ragbone](https://wordpress.org/support/users/ragbone/)
 * (@ragbone)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/database-selected-error/#post-24696)
 * where is this wp-config.sample.php located at?????
 *  [Mike Little](https://wordpress.org/support/users/mikelittle/)
 * (@mikelittle)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/database-selected-error/#post-24698)
 * It is part of the distribution. When you unzipped the files, wp-config.sample.
   php is one of the files. You have to copy is to wp-config.php (or rename it) 
   and modify the database settings in there to match your database.
    Mike

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

The topic ‘Database selected error’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 2 participants
 * Last reply from: [Mike Little](https://wordpress.org/support/users/mikelittle/)
 * Last activity: [22 years, 8 months ago](https://wordpress.org/support/topic/database-selected-error/#post-24698)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
