Title: installing wordpress on localhost
Last modified: December 30, 2017

---

# installing wordpress on localhost

 *  Resolved [dolphinsin](https://wordpress.org/support/users/dolphinsin/)
 * (@dolphinsin)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/installing-wordpress-on-localhost/)
 * Hi,
 * I’m having trouble with installing WP on my local server. I’m using MAMP and 
   have got to the point where I choose a language for WP to run in, then it takes
   me to the login database name, username, password. I’ve checked my wp-config-
   sample and the username and password are the same as I am using, but it keeps
   saying it has error establishing database connection.
 * Are you sure you have the correct username and password?
    Are you sure that you
   have typed the correct hostname? Are you sure that the database server is running?
 * In answer to the above, yes I am sure username and password are correct.
    Yes
   I am certain that hostname is identical Yes I am sure the database server is 
   running.
 * Does anyone have any ideas as to what the problem might be? I have even tried
   installing AMPPS to be sure and it doesn’t work with that either.
 * Would really appreciate any suggestions.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finstalling-wordpress-on-localhost%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/installing-wordpress-on-localhost/#post-9822557)
 * Useful codex guides:
    [https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/](https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/)
   [http://codex.wordpress.org/Installing_WordPress#Installing_WordPress_on_your_own_Computer](http://codex.wordpress.org/Installing_WordPress#Installing_WordPress_on_your_own_Computer)
   [http://codex.wordpress.org/WordPress_Installation_Techniques#Installing_WordPress_Locally](http://codex.wordpress.org/WordPress_Installation_Techniques#Installing_WordPress_Locally)
   [https://codex.wordpress.org/Installing_WordPress](https://codex.wordpress.org/Installing_WordPress)
 *  Thread Starter [dolphinsin](https://wordpress.org/support/users/dolphinsin/)
 * (@dolphinsin)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/installing-wordpress-on-localhost/#post-9822822)
 * Thank you so much for your reply. WordPress was downloaded and installed ok, 
   and in the right file, also wp-config was all ok.
 * What I discovered in the end, incase anyone in the future has a similar thing
   with MAMP, is that on the localhost/MAMP page there is ‘My Website’. I just clicked
   that link and it took me to the WordPress enter site title, username and pw, 
   it completely skipped the page needing to enter database name, wp-config u/n 
   and p/w.
 * Thanks again for the links, I did read them.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/installing-wordpress-on-localhost/#post-9822839)
 * Glad to know it 🙂
 *  [jascore7](https://wordpress.org/support/users/jascore7/)
 * (@jascore7)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/installing-wordpress-on-localhost/#post-9829110)
 * What about to try other enviroments like Kalabox or Docker?
 * This method is pretty straight forward!
 * If you are a beginner and want to start working on WordPress without spending
   much time on infrastructure try Kalabox
 * If you want to learn a lot!
 * Try to use docker with terminal, if you get stuck you can go and use the docker
   GUI Kitematic or vagrant(vagrant takes a lot of time to get used to)
 * Hope this work for you!

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

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [jascore7](https://wordpress.org/support/users/jascore7/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/installing-wordpress-on-localhost/#post-9829110)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
