# Error establishing a database connection after switching from PHP 7.3.5 to PHP 7.4.1

**URL:** https://community.localwp.com/t/error-establishing-a-database-connection-after-switching-from-php-7-3-5-to-php-7-4-1/19283
**Category:** Support
**Created:** [May 6, 2020, 12:50pm UTC](https://community.localwp.com/t/error-establishing-a-database-connection-after-switching-from-php-7-3-5-to-php-7-4-1/19283 "2020-05-06T12:50:24Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)
#### Post date: [May 6, 2020, 2:44pm UTC](https://community.localwp.com/t/error-establishing-a-database-connection-after-switching-from-php-7-3-5-to-php-7-4-1/19283/4 "2020-05-06T14:44:09Z")

</div>

Got it. Can you please provide your `local-lightning.log` file? See [How do I retrieve Local's log file?](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720) for instructions on how to do so.

* * *

Additionally, are new sites that use 7.3 or 5.6 able to connect to the database?

---

_[View the full topic](https://community.localwp.com/t/error-establishing-a-database-connection-after-switching-from-php-7-3-5-to-php-7-4-1/19283)._
