# Local by Flywheel crashed and now .. Error establishing a database connection

**URL:** <https://community.localwp.com/t/local-by-flywheel-crashed-and-now-error-establishing-a-database-connection/33889>\
**Category:** Support\
**Created:** [October 26, 2022, 6:58pm UTC](https://community.localwp.com/t/local-by-flywheel-crashed-and-now-error-establishing-a-database-connection/33889 "2022-10-26T18:58:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanmalik786](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/tanmalik786/32/10849_2.png) [@tanmalik786](https://community.localwp.com/u/tanmalik786)\
**Post date:** [October 26, 2022, 6:58pm UTC](https://community.localwp.com/t/local-by-flywheel-crashed-and-now-error-establishing-a-database-connection/33889/1 "2022-10-26T18:58:45Z")

</div>

### Issue Summary

I have had a working installation of a WordPress website, due some un-known reason ‘Local’ Crashed and now I am unable to access this Website - the only Local site which was running at the time of Crash.  
I tried and found that MySQL is not available - Adminer fails to connect and throws an exception

> Error establishing a database connection

_One or two sentence summary of the issue._

#### Troubleshooting Questions

- Does this happen for all sites in Local, or just one in particular?  
No, only the local website which was running at that point in time.

- 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!  
Just can’t provide any as the system crashed and it started happening like it’s - This is the 2nd Instance I have come across this issue since last about One (1) week

#### System Details

- Which version of Local is being used?  
v6.4.3

- What Operating System (OS) and OS version is being used?

- Attach the Local Log. See this Help Doc for instructions on how to do so:

### 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.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 1, 2022, 8:31pm UTC](https://community.localwp.com/t/local-by-flywheel-crashed-and-now-error-establishing-a-database-connection/33889/2 "2022-11-01T20:31:36Z")

</div>

Hi @tanmalik786! Do you have any antivirus, security, or firewall applications that could be blocking Local? It looks like from the log it might be having trouble connecting.

More details about troubleshooting this here: [Router Mode](https://localwp.com/help-docs/advanced/router-mode/)

---

<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:** [January 30, 2023, 8:31pm UTC](https://community.localwp.com/t/local-by-flywheel-crashed-and-now-error-establishing-a-database-connection/33889/3 "2023-01-30T20:31:45Z")

</div>

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