# "error establishing database connection"

**URL:** <https://community.localwp.com/t/error-establishing-database-connection/22496>\
**Category:** Support\
**Tags:** mysql\
**Created:** [October 13, 2020, 9:46pm UTC](https://community.localwp.com/t/error-establishing-database-connection/22496 "2020-10-13T21:46:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [October 14, 2020, 7:09pm UTC](https://community.localwp.com/t/error-establishing-database-connection/22496/2 "2020-10-14T19:09:55Z")

</div>

Hey @caveman75, Welcome to the Local Community Forums!

It’s hard to say why the site went away, but a power outage could definitely cause a corruption within the database.

Can you try restoring the site to a new one in Local? You can use a backup of the site, or try using the files for the site by following the steps outlined in the “Restoring From Only Local Site files” section of this help doc:

- [https://localwp.com/help-docs/how-to-import-a-wordpress-site-into-local/](https://localwp.com/help-docs/how-to-import-a-wordpress-site-into-local/)

If you still have issues, can you please provide your Local Log? See this Community Forum post for instructions on how to do so:

- [How do I retrieve Local’s Log?](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720)

---

_[View the full topic](https://community.localwp.com/t/error-establishing-database-connection/22496)._
