Title: Can&#039;t select database
Last modified: August 20, 2016

---

# Can't select database

 *  Resolved [milesb1](https://wordpress.org/support/users/milesb1/)
 * (@milesb1)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/)
 * I cannot access my wordpress admin log in page and the link to my site comes 
   up with the same 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 wrd_bnei3d3adg database.
 * Are you sure it exists?
    Does the user wrdR0OrNF6n have permission to use the
   wrd_bnei3d3adg database? On some systems the name of your database is prefixed
   with your username, so it would be like username_wrd_bnei3d3adg. Could that be
   the problem?
 * Internal Server Error
 * The server encountered an internal error or misconfiguration and was unable to
   complete your request.
 * Please contact the server administrator, [cgiadmin@yourhostingaccount.com](https://wordpress.org/support/topic/cant-select-database-18-2/cgiadmin@yourhostingaccount.com?output_format=md)
   and inform them of the time the error occurred, and anything you might have done
   that may have caused the error.
 * More information about this error may be available in the server error log.
 * Can anyone please help me in finding the solution to this problem?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719179)
 * Confirm your database details with your hosts.
 *  Thread Starter [milesb1](https://wordpress.org/support/users/milesb1/)
 * (@milesb1)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719257)
 * I’ve contacted my hosting company asking for the details but it’s still not working.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719307)
 * I;m sorry but there’s nothing we can really add to help you from here.
 *  [patrickdickey](https://wordpress.org/support/users/patrickdickey/)
 * (@patrickdickey)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719453)
 * I have essentially the same error on my installation. I’m able to access the 
   database in mysql on the server (I’m hosting the site in a virtual machine on
   the computer that I’m trying to run the installation script from).
 * > 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 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? If you don’t
   > know how to set up a database you should contact your host. If all else fails
   > you may find help at the WordPress Support Forums.
 * in mysql>, use wordpress; gives me database changed. show tables; gives me 0 
   records (empty set).
 * One thing to note is that I’m using the root user for mysql to access it. Could
   that be the issue (that wordrpess/apache/mysql somehow blocks this)?
 * Thanks and have a great day:)
    Patrick.
 *  [DaveCoast](https://wordpress.org/support/users/davecoast/)
 * (@davecoast)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719458)
 * Did you create a database and user as per step 2 in the instructions – [WordPress Instructions](http://codex.wordpress.org/Installing_WordPress)
 * WordPress needs its very own database specific user created for the connection.
 * Please create and/or verify that your user (for WordPress) has been added to 
   your WordPress database.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719475)
 * **[@patrickdickey](https://wordpress.org/support/users/patrickdickey/)**: It 
   is impolite and contrary to forum policy to interrupt another poster’s ongoing
   thread with a question of your own. Please post your own topic.
 *  Thread Starter [milesb1](https://wordpress.org/support/users/milesb1/)
 * (@milesb1)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719476)
 * The problem is resolved now. Thanks to everyone for their support.
 * The problem was that I hadn’t input the necessary data in the correct location.
 *  [patrickdickey](https://wordpress.org/support/users/patrickdickey/)
 * (@patrickdickey)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/cant-select-database-18-2/#post-2719486)
 * Sorry for interrupting. I threw mine in because it was almost the exact same 
   situation as the original posters. My mistake, and it won’t happen again. Like
   the original poster, my issue is solved now as well.
 * Have a great day:)
    Patrick.

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

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

## Tags

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
