• jdouglasallen

    (@jdouglasallen)


    I’m completely new to WordPress, and want to set up a website on my desktop through MAMP before uploading it to a remote server. I followed the MAMP instructions, and got to the point where I have a database set up through phpMyAdmin and have expanded the WordPress zip file into a folder in my computer. I get stopped at the 5 minute install. When I try to access my local host through localhost:8888, I get the error message “Error establishing a database connection.” I’ve checked the wp-config.php file and the database name, username, and password appear to be correct (both username and password are set to “root”). I’ve deleted the database and the created WordPress file and started from scratch, but get the same message. Where should I be looking for a fix to the problem?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Keith Driscoll

    (@keithdriscoll)

    I usually recommend using test as your db and root as the user with NO password. MySQL has a built in db called test for the purpose of dev/testing (as per MySQL docs).

    As per your description above, if you are using root as the user try with NO password first.

    Hope this helps ??

    *the above recommendation is assuming that security is not an issue since you are simple developing/designing locally.

    Thread Starter jdouglasallen

    (@jdouglasallen)

    Thanks for the reply. Are you saying keep the current name of my db and make the change to the password? How do I put NO password. Do I simply delete everything between the marks (as in changing ‘root’ to ”), or is there another way to do it?

    iuliaradu

    (@iuliaradu)

    Hi,

    I used this and like you, I have the same error at the end.
    https://skillcrush.com/2015/04/14/install-wordpress-mac/..I tried so many times I just feel like through this out of the window…

    Keith Driscoll

    (@keithdriscoll)

    @jdouglasallen Apologies for late reply…I’m just suggesting “keeping it simple”, by installing WordPress using the test db, root as user, and leave the password field blank (this is because the built in root user has no password).

    After you copy the WordPress files from the .zip file to htdocs (or a subfolder within that is accessible via browser), you simply just need to visit localhost/your-wordpress-install-folder and WordPress will walk you through the install.

    @iuliaradu As per forum rules, please start your own topic if you would like assistance.

    Mac root username is root and password is root. Do not take any advice from windows users. The have no clue.

    Check your file permissions, Mac is very sensitive that way.

    Set up the built in Apache server and toss MAMP.
    https://mallinson.ca/osx-web-development/

    Thread Starter jdouglasallen

    (@jdouglasallen)

    Thanks for the information, Keith. I found out what the trouble was. I was following directions in which I was told to manually change the wp-config.php file first, then do the 5-minute install. Every other set of instructions I found did not have the manual reconfiguration. When I eliminated that, the install went fine. Appreciate the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘MAMP/Can’t Get Out Of The Gate On Desktop’ is closed to new replies.