• Resolved loeppkydesigns

    (@loeppkydesigns)


    Hello.
    I am working off a local server and I keep getting the message Error Establishing a Database Connection. I know that my password and user name is correct. I have done this before on a different local server, but this time it is not working for me. Any tips on what I can try? Thank you very much.

Viewing 5 replies - 31 through 35 (of 35 total)
  • Thank for your question! I have additional information about this problem

    Thread Starter loeppkydesigns

    (@loeppkydesigns)

    @thetuansapa what kind of additional information do you have with this problem? I still stuck. I have tried everything I can come up with and researched.
    The only thing I have not done yet and am checking on is to make sure MySQL is not blocked by the firewall.
    The MySQL server is set to localhost

    Sorry to hear that you are still facing this issue.

    Let’s clarify a few items:

    – MAMP is running and both the Apache Server and MySQL Server are showing that they are running (boxes are black)
    – From the MAMP control panel > Preferences > Ports > click Set Web & MySQL ports to 80 & 3306
    – The MAMP start page opens when you click the link on the MAMP control panel

    With MAMP set up this way, then the details you provided earlier should work; I just tried it on my own local MAMP install.

    DB Name: gardewine
    DB User: root
    DB Pwd: root
    DB Host: localhost

    Note that with the Apache port set to 80, you may get a warning that the port is already in use. This is generally caused by one or both of Skype running and Microsoft World Wide Web Publishing service is running. I’d have to look up the links to where you can find out how to disable them, but Google should work ??

    Also note that with the port set to 80 you will access the site install with:

    https://localhost/gardewine … that’s if gardewine is the name of the folder in htdocs where your WP install is.

    Thread Starter loeppkydesigns

    (@loeppkydesigns)

    @snifflevalve you are my favourite person EVER!!!!!!!!
    I didn’t have the ports correct on my settings.. I knew it was going to be something so simple. Thank you so much!

    @loeppkydesigns – good to hear that you got it sorted ?? Would you kindly mark this topic as Resolved?

    Cheers!
    Lyle

Viewing 5 replies - 31 through 35 (of 35 total)
  • The topic ‘Error Establishing a Database Connection on Local Server’ is closed to new replies.