• Hi All,
    I am trying to install the latest version but want to edit etc via localhost before i launch my site.
    I have followed the instructions but keep getting a error saying there could be a problem establishing database connection
    I have loaded and run MAMP
    Unzipped wordpress into htdocs folder
    Edited wp-config.
    Entered DB name, password etc and
    Then I type in the following;

    localhost:8888/wp-admin/install.php

    Any help gratefully received.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Did you actually create the database? Just checking as the only reasons to get an “error establishing database connection” is that:
    1) the database doesn’t exist
    2) the name of the DB or the username and password for the database are incorrect (misspelling).
    3) the path to the database (IP address or domain name) is incorrect (misspelling or missing the port number or just the wrong address)

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    Hi
    Thanks for getting back to me.
    I created the DB first and it came back confirmed.
    I then unzipped word press in the htdocs folder then moved everything back to the htdocs root dir.
    Not sure what’s happening.

    I am using mamp to run wordpress. during installation it comes up to a screen asking for user name and password… What user name and password are they referring too. I have tried everyone I can think of. Please help!

    Did you also edit your wp-config.php file so that it contains the database info (host, name, user, password)?

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    Hi,
    Yes I entered the details as shown on MAMP

    DATABASE NAME
    ROOT
    ROOT

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    I’ll have another go in the morning. Fingers crossed.

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    Tried everything again, double checking all entries but to no avail.
    i do have Libra office on my mac so was wondering could this be causing a problem?
    Totally lost now so may try it on my windows based laptop to se what happens there.

    Instead of using root/root, try creating a new, database-specific user in phpMyAdmin that has full access to your database.

    For example, if your database is called “mydatabase”, create a user called “mydatabaseuser” with its own password, assign it full rights to the “mydatabase” database, and enter that info in your wp-config.php.

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    Thanks i will try that now. I am also loading it on my Windows based laptop to see if that is any better. Strange thing is though, i never had any problem in the past.

    Just a hint Mark, adding a user in phpmyadmin is done in the “privileges” tab.

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    Just loaded it all up on my Windows Laptop and exactly the same message was received.
    Created new user etc but same message.

    Try webmatrix instead on your windows based PC.

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    Finally got it running on my Windows based laptop by using XAMMP.
    Tried the sam eon my mac but still same problems. Finding everything apart from the database.
    Off to work now so will try again tomorrow.
    Thanks for all your input

    @dogsbowlucks

    Yes I entered the details as shown on MAMP

    DATABASE NAME
    ROOT
    ROOT

    If you entered the info in wp-config as you have entered here in your post, then there is the issue: it is case sensitive! 🙂

    The correct form is:

    database_name (NO SPACES!)
    root
    root

    Try that 🙂

    Thread Starter dogsbowlucks

    (@dogsbowlucks)

    Hi,
    Yes it was entered as lowercase without password.
    Like I said it’s running on my laptop but not my mac.
    I have more time at weekend so I now know what I will be doing, 🙁

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Local Host Installation’ is closed to new replies.