Error establishing database connection on Mac

What issue or error are you experiencing?

test site opens fine. very complex and large site get this error, after wiping and restoring entire Mac os rebuild. I’ve tried restoring all files from earlier, previously-working versions with no success. Attempting to Open site or WPAdmin gets the same result. Tried changing ngnix to Apache and different PHP versions, no joy. Local version Version 8.2.1+6583, Mac OS Sonoma 14.3.1. (106.5 KB)

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


System Details

  • Local Version:

  • Operating System (OS) and OS version:

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 @brucemiracle

How “complex and large” is this site? Is there anything on it that could be optimized through alternative methods like SSH/SFTP?

Is this a multisite?

It might be causing some performance troubles you could test out here:

For some suggestions around optimizations, you can down below on this article:

Hi Nick,
500+ blog entries, 800 media library items, like that. Not multi-site.
As it turns out, the main problem appears to have been Elementor CSS related, and rebuilding those tables fixed most of the problem. However, in my troubleshooting efforts, I deleted and reinstalled Local, which had the effect of making the previous sites invisible and inaccessible… I had to zip the entire site and reimport it into Local and then that basically worked.

1 Like

Glad to hear it @brucemiracle! Thank you for coming back and updating on what worked here.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.