• Resolved GottaQ

    (@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:
    http://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP

    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)
  • iamrohan

    (@rohan-k)

    hi,

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

    Thread Starter GottaQ

    (@gottaq)

    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..

    Thread Starter GottaQ

    (@gottaq)

    Resolved. Anyone having this problem in the future, refer to these threads:
    http://wordpress.org/support/topic/trying-to-install-on-a-mac-with-mampcant-figure-out-last-step?replies=5
    http://wordpress.org/support/topic/mamp-problem?replies=2

    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.