Support » Localhost Installs » Run WP locally on a mac

  • Resolved GottaQ


    Trying to run WordPress locally on my computer. I don’t have a server as of yet. I have been following the instructions found here:

    I’m using MAMP and phpMyAdmin. However, I’m having difficulties with the final WP installation step (step 4). It says:

    Lastly, we’ve got to run WordPress’ famous 5-minute install. Visit your local site (localhost:port or localhost:port/wordpress), and enter the following information into the database setup form:
    database name: wordpress
    database host/server: localhost
    database user: root
    database password: root

    I can access my local site (8888) fine, and I see all my other personal folders there. But when I click the “wordpress” one i created I get an error page saying, “Error establishing a database connection”. Better yet, what exactly is the database setup form?

    Any idea whats going on?

Viewing 3 replies - 1 through 3 (of 3 total)
  • hi,

    change the db password to blank (leave it blank) instead of root.

    Where do I access the db password? This is where I’m lost.

    Heres what I’m doing:

    1. Downloaded and unzipped the wordpress folder and started MAMP
    2. Dragged the wordpress folder to my MAMP root folder
    3. Opened a Safari browser
    4. Typed: [ localhost:8888 ] in my browser (I see all the folders from my MAMP root folder listed in the browser, all my old files are accessible except the wordpress one)
    5. *What do I do to find the database setup form? I assume this is where I can change passwords etc..

    Resolved. Anyone having this problem in the future, refer to these threads:

    Long story short – you’re gonna have to edit the wp-config.php file (this is where you find the database setup form when using MAMP) even though they suggest not to. I guess it does no harm when your editing your website locally. Just remember that you did that when actually taking your site live.

    Once you edited the file go back to your browser and type localhost:8888 or whatever you set your MAMP settings to.

    Hope that helps

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Run WP locally on a mac’ is closed to new replies.