# Need help! Error establishing a database connection"

**URL:** <https://community.localwp.com/t/need-help-error-establishing-a-database-connection/13785>\
**Category:** Support\
**Created:** [August 22, 2019, 7:36pm UTC](https://community.localwp.com/t/need-help-error-establishing-a-database-connection/13785 "2019-08-22T19:36:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [August 29, 2019, 10:29pm UTC](https://community.localwp.com/t/need-help-error-establishing-a-database-connection/13785/7 "2019-08-29T22:29:18Z")

</div>

Hey @msmichelle –

Thanks for uploading those logs. Can you try restarting the VM by going to “Help \> Restart Local Machine”.

If that doesn’t work, then follow the steps outlined in this topic to forcefully shut down and restart the VM:

- [How can I forcefully restart the Local by Flywheel VM?](https://localbyflywheel.com/community/t/how-can-i-forcefully-restart-the-local-by-flywheel-vm/6388)

If that doesn’t work, can you provide an updated version of the Local log, as well as the individual site logs?

To get the site logs do this:

1. Right-click on the site in Local and select “Reveal in Finder”
2. Right-click on the folder that says `logs` and compress it into a `zip` file  
3 Upload the zip file of those site logs

Let me know how restarting the Virtual Machine goes, or if you have any other questions!

---

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