Title: Problem installing wordpress locally
Last modified: August 31, 2016

---

# Problem installing wordpress locally

 *  [muratg](https://wordpress.org/support/users/muratg/)
 * (@muratg)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/)
 * I am using MAMP to install WordPress locally. I am pretty sure that the database
   name, username and password are correct. Although when I try to install it, I
   am prompted with an error saying the following:
 * “This either means that the username and password information in your wp-config.
   php file is incorrect or we can’t contact the database server at localhost. This
   could mean your host’s database server is down.
 * 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?
 * If you’re unsure what these terms mean you should probably contact your host.
   If you still need help you can always visit the”
 * Is there any way I can solve this problem?

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

 *  [Fabio Fiss](https://wordpress.org/support/users/fabiofiss/)
 * (@fabiofiss)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/#post-6911682)
 * MAMP requires “root” for the username and password. Do you have those credentials
   in your wp-config file?
 * Other local environments like XAMPP use a blank password by default.
 * You can also take a look at this link for more info:
    [https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP](https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP)
 *  [Yogesh Londhe](https://wordpress.org/support/users/yoga1103/)
 * (@yoga1103)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/#post-6911803)
 * Hi Murat,
 * DO check if the DB server is running with PHPMysql or mysql client on command
   line: mysql -h 127.0.0.1 -u root -p password
 *  [Yogesh Londhe](https://wordpress.org/support/users/yoga1103/)
 * (@yoga1103)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/#post-6911804)
 * HI Murat,
 * Do follow this:
 * [https://wordpress.org/support/topic/error-establishing-a-database-connection-on-macmamp-install?replies=15](https://wordpress.org/support/topic/error-establishing-a-database-connection-on-macmamp-install?replies=15)
 *  Thread Starter [muratg](https://wordpress.org/support/users/muratg/)
 * (@muratg)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/#post-6911813)
 * Fabio and Yoga1103 thank you. I got it fixed everything is working now.
 * 1 final question, I have created my own website using MAMP and now I need to 
   know how can I upload it to my hosting (godaddy), so my customers can access 
   it! Any idea?
 *  [Fabio Fiss](https://wordpress.org/support/users/fabiofiss/)
 * (@fabiofiss)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/#post-6911815)
 * Hey muratg. That’s great news!
 * Please take a look at this link as it explains the process in detail:
    [http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/](http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/)
 * I hope this helps 🙂
 *  Thread Starter [muratg](https://wordpress.org/support/users/muratg/)
 * (@muratg)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/#post-6911816)
 * thank you. I will try this later on

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

The topic ‘Problem installing wordpress locally’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 6 replies
 * 3 participants
 * Last reply from: [muratg](https://wordpress.org/support/users/muratg/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/problem-installing-wordpress-locally/#post-6911816)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
