Title: Localhost install
Last modified: August 22, 2016

---

# Localhost install

 *  [hanzo44](https://wordpress.org/support/users/hanzo44/)
 * (@hanzo44)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/)
 * Im trynig to use Wamp to do a local host install of wordpress. I set up the wp-
   config-sample.php with my database(thepress), name username(root), password(blabnk)…
   and save it as wp-config.php, and word press tells me it needs a wp-config-sample.
   php to work with…when I change the wp-config.php file back to wp-config-sample.
   php, it says it needs a wp-config.php file…I’m stuck in the catch22…what am I
   doing wrong?

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

 *  [arn213](https://wordpress.org/support/users/arn213/)
 * (@arn213)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/#post-5285077)
 * database should be wordpress not thepress.
 *  Thread Starter [hanzo44](https://wordpress.org/support/users/hanzo44/)
 * (@hanzo44)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/#post-5285081)
 * just tried it that’s not the issue. still not installing correctly
 *  Thread Starter [hanzo44](https://wordpress.org/support/users/hanzo44/)
 * (@hanzo44)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/#post-5285084)
 * error msg I get:
 * 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 thepress
   database.
 * Are you sure it exists?
    Does the user root have permission to use the thepress
   database? On some systems the name of your database is prefixed with your username,
   so it would be like username_thepress. 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
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/#post-5285121)
 * That maens that one of the four settings in your `wp-config.php` file are incorrect,
   or that the MySQL server isn’t running. Open phpMyAdmin on your PC (it’s part
   of WAMP) and double-check the database name, username and password for the connection,
   and check what it set in your `wp-config.php` file under `DB_HOST`.
 *  [jnikko13](https://wordpress.org/support/users/jnikko13/)
 * (@jnikko13)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/#post-5285370)
 * Try microsoft web matrix if you are using a windows based pc. I use it for WordPress
   development on WIN8
 *  Thread Starter [hanzo44](https://wordpress.org/support/users/hanzo44/)
 * (@hanzo44)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/#post-5285390)
 * thanks jnikko13, I’ll give it a shot, see how it goes.

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

The topic ‘Localhost install’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 4 participants
 * Last reply from: [hanzo44](https://wordpress.org/support/users/hanzo44/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/localhost-install-1/#post-5285390)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
