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.

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

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.

  • the user and password are set to root, and the database name is correct – Soumil May 21 '17 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 '17 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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