# "Error establishing a database connection" what can i do?

**URL:** <https://community.localwp.com/t/error-establishing-a-database-connection-what-can-i-do/23715>\
**Category:** Support\
**Created:** [January 4, 2021, 12:07pm UTC](https://community.localwp.com/t/error-establishing-a-database-connection-what-can-i-do/23715 "2021-01-04T12:07:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdouay](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@vdouay](https://community.localwp.com/u/vdouay)\
**Post date:** [January 4, 2021, 12:07pm UTC](https://community.localwp.com/t/error-establishing-a-database-connection-what-can-i-do/23715/1 "2021-01-04T12:07:41Z")

</div>

### Issue Summary

I get “Error establishing a database connection” and my website is down

#### Troubleshooting Questions

- Does this happen for all sites in Local, or just one in particular?  
All

- Are you able to create a new, plain WordPress site in Local and access it in a Browser?  
Yes

#### Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

#### System Details

- Which version of Local is being used?  
My website had trouble since the last update, i downgraded to 5.09.0

- What Operating System (OS) and OS version is being used?  
macOS Big Sur 11.1  
[local-lightning.log](https://community.localwp.com/uploads/short-url/7wxKhgoJDcttsnrF6WkykgUMBId.log) (187.8 KB)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [April 4, 2021, 12:07pm UTC](https://community.localwp.com/t/error-establishing-a-database-connection-what-can-i-do/23715/2 "2021-04-04T12:07:43Z")

</div>

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