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/…– TaraMay 21, 2017 at 15:50
The firewall situation is the likely culprit. Configure the firewall application to allow MAMP to use the network.– Dave RomseyMay 21, 2017 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– SoumilMay 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
rootas you stated you have above?– DanielDec 16, 2017 at 16:42