Title: problem installing WP on localhost
Last modified: August 19, 2016

---

# problem installing WP on localhost

 *  [cmmcwain](https://wordpress.org/support/users/cmmcwain/)
 * (@cmmcwain)
 * [16 years ago](https://wordpress.org/support/topic/problem-installing-wp-on-localhost/)
 * I would like to build a custom theme for my site, so I was advised to use XAMPP
   and build and test my theme on my local server.
 * The XAMPP install went great. I entered the database name, username, and password
   I created in myPHPadmin, but when I go to install WP I get a “can’t connect to
   database error.
 * I have scanned the wp-config.php file to see if I made a mistake but I can’t 
   find any.
 * Can anyone possibly help?
 * Thank you,
    Corie

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years ago](https://wordpress.org/support/topic/problem-installing-wp-on-localhost/#post-1518463)
 * All I can suggest is that you check that the db connection details are correct(
   host, name, username & password( and that MySql is running.
 *  Thread Starter [cmmcwain](https://wordpress.org/support/users/cmmcwain/)
 * (@cmmcwain)
 * [16 years ago](https://wordpress.org/support/topic/problem-installing-wp-on-localhost/#post-1518485)
 * Yes they are and myslq is running. Thanks for replying!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [16 years ago](https://wordpress.org/support/topic/problem-installing-wp-on-localhost/#post-1518533)
 * This might help:
 * [http://www.tamba2.org.uk/wordpress/xampp/](http://www.tamba2.org.uk/wordpress/xampp/)
 *  Thread Starter [cmmcwain](https://wordpress.org/support/users/cmmcwain/)
 * (@cmmcwain)
 * [16 years ago](https://wordpress.org/support/topic/problem-installing-wp-on-localhost/#post-1518549)
 * I am running Win7 will this still work?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [16 years ago](https://wordpress.org/support/topic/problem-installing-wp-on-localhost/#post-1518651)
 * It should. The instructions may require a bit of extra interpretation, but you
   should be able to install Xampp on Win 7.

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

The topic ‘problem installing WP on localhost’ is closed to new replies.

## Tags

 * [myphpadmin](https://wordpress.org/support/topic-tag/myphpadmin/)
 * [xampp](https://wordpress.org/support/topic-tag/xampp/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/problem-installing-wp-on-localhost/#post-1518651)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
