Error establishing a database connection 2024

What issue or error are you experiencing?

Error establishing a database connection


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I have used the php info that I downloaded from the website I am trying to stage inside of LocalWP.


System Details

  • Local Version:

  • Operating System (OS) and OS version:
    MacOS 14.5
    error.log (1.5 KB)


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @paulasfonseca

So are you trying to import a site into Local and you’re getting this error?

Can you create a new, blank site and access that okay?

Could you please attach your full local log as well? Retrieving Local’s Log File