Title: WordPress installation problem
Last modified: August 21, 2016

---

# WordPress installation problem

 *  [romeocameo](https://wordpress.org/support/users/romeocameo/)
 * (@romeocameo)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/)
 * When I install and setup wordpress on my localhost, this is the error message
   that I have got. May I know how can I solve this problem? Thanks.
 * ===
    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.
 * Try again
    ===

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

 *  [statehill](https://wordpress.org/support/users/statehill/)
 * (@statehill)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679033)
 * I also have the same problem, I have modified the config many ways and it still
   gives me an error when I view index.php.
    e.g. MySQL database username */ define(‘
   DB_USER’, – I tried DB_USER as ‘USER_DB’ = NOTHING as ‘USER’ = Still nothing.
   what am I doing wrong? Thanx [http://www.statehill.co.za/company](http://www.statehill.co.za/company)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679095)
 * **[@statehill](https://wordpress.org/support/users/statehill/)**: It is considered
   impolite to interrupt another poster’s ongoing thread unless you are posting 
   a solution or suggestion. As per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679096)
 * [@romeocameo](https://wordpress.org/support/users/romeocameo/): You need to re-
   check your database details – specifically the name of the database.
 *  [statehill](https://wordpress.org/support/users/statehill/)
 * (@statehill)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679212)
 * not our intention. sorry all
 *  [ampli](https://wordpress.org/support/users/ampli/)
 * (@ampli)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679217)
 * login to phpmyadmin select the database it will show the prefix.
 * If nothing works drop all your tables, delete the existing wp-config.php make
   sure you have the wp-config sample.php
 * Then start installing it again.
 * This is not an exact tutorial but it shows [how to drop the tables](http://vikasknowsit.blogspot.com/2014/03/how-to-fix-wordpress-admin-login-error.html)
   and configure again.
 *  [statehill](https://wordpress.org/support/users/statehill/)
 * (@statehill)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679248)
 * thanx [@ampli](https://wordpress.org/support/users/ampli/), your tutorial helped.
   I had to load my username as both DB name and user @ localhost.
 *  [ampli](https://wordpress.org/support/users/ampli/)
 * (@ampli)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679249)
 * [@statehill](https://wordpress.org/support/users/statehill/) I am glad my tutorial
   helped you 😀

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

The topic ‘WordPress installation problem’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 7 replies
 * 4 participants
 * Last reply from: [ampli](https://wordpress.org/support/users/ampli/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/wordpress-installation-problem-4/#post-4679249)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
