0

I have followed the instructions from this site https://skillcrush.com/2015/04/14/install-wordpress-mac/ to install wordpress and MAMP on my MacBook. Everything worked out fine, but during the last step, the site is showing, Error establishing Database Connection. I am confused as to what caused this problem. Could it be because during the first time I turned in the MAMP server, I denied Firewall Access, I am not exactly sure what that was, but I accidentally denied it. Could it be the reason that it is showing this error? All the other solutions I googled are usually caused after the installation. Please help.

2
  • Try reviewing the following codex for some guidance: codex.wordpress.org/…
    – Tara
    May 21, 2017 at 15:50
  • The firewall situation is the likely culprit. Configure the firewall application to allow MAMP to use the network. May 21, 2017 at 19:13

1 Answer 1

0

This error is usually caused by incorrect database credentials in your wp-config.php file. Open that file and verify that the database server, name, user, and password are correct.

2
  • the user and password are set to root, and the database name is correct
    – Soumil
    May 21, 2017 at 14:01
  • @Soumil, are you running WordPress on a MacBook and are you familiar with the command line tool? If so, can you log in to your mysql server via command line using the user and password settings of root as you stated you have above?
    – Daniel
    Dec 16, 2017 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.