# Error establishing database connection

**URL:** <https://community.kinsta.com/t/error-establishing-database-connection/1050>\
**Category:** Application Support\
**Created:** [October 19, 2021, 4:20pm UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050 "2021-10-19T16:20:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Bjorn](https://community.kinsta.com/u/Bjorn)\
**Post date:** [October 19, 2021, 4:20pm UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050/1 "2021-10-19T16:20:22Z")

</div>

Hi,

after (unnoticed) running out of enough free diskspace I now get an ‘error establishing database connection’. I freed up some diskspace reinstalled devkinsta but the error remains. When I try to open the database via the Database manager I’ getting warning/errors: Cannot modify header information - headers already sent by (output started at /var/www/html/adminer.php:181) in /var/www/html/adminer.php). Any help would be appreciated

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [October 20, 2021, 2:37pm UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050/2 "2021-10-20T14:37:36Z")

</div>

[DevKinsta 2.2.0](https://kinsta.com/devkinsta/) addresses the issue of checking to ensure that Docker has enough disk space available for DevKinsta to run. Are you running on 2.2.0 by chance?

You’ll want to open up Docker and increase the disk size here:

 ![Screen Shot 2021-07-01 at 5.32.22 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/f8b92f75634b2ff8b0d05e6ed0450594bbb23b5c.png)

---

<div class="post-metadata">

**Author:** ![Bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Bjorn](https://community.kinsta.com/u/Bjorn)\
**Post date:** [October 20, 2021, 5:01pm UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050/3 "2021-10-20T17:01:49Z")

</div>

Hi, I am now 😉 But I can’t seem to restore the connection to the database. When I try to open the database via the Database manager I’ getting warning/errors: Cannot modify header information - headers already sent by (output started at /var/www/html/adminer.php:181) in /var/www/html/adminer.php). See [Dropbox - Schermafbeelding 2021-10-20 om 19.00.47.png - Simplify your life](https://www.dropbox.com/s/sha7defddfx6t7a/Schermafbeelding%202021-10-20%20om%2019.00.47.png?dl=0).

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [November 10, 2021, 2:45pm UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050/4 "2021-11-10T14:45:58Z")

</div>

Hey @Bjorn . Could you try [DevKinsta 2.3.0](https://devkinsta.com) and let me know if that resolves this for you?

---

<div class="post-metadata">

**Author:** ![Bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Bjorn](https://community.kinsta.com/u/Bjorn)\
**Post date:** [November 13, 2021, 10:30am UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050/5 "2021-11-13T10:30:30Z")

</div>

Hi Michael, I upgraded to version 2.3.0 but it did not solve the issue. For the sites that were already there before I run out of memory I still get the error message. When adding a new site it all works fine. When I open the database manager for a ‘new’ site it’s opening fine as well. When I look in the database dropdown, I only see the newly added sites (db’s). So I assume that after running out of memory something made the other DB’s disappear or inaccessible…See [Dropbox - devkinsta - Simplify your life](https://www.dropbox.com/sh/7muesfqicknsddc/AABm2mVAHKyJAaYNLTm6q1bea?dl=0)

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [November 15, 2021, 2:32pm UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050/6 "2021-11-15T14:32:35Z")

</div>

Thank you for testing that @Bjorn . We’re not sure what could have happened there but we’ll keep taking a look at this.

---

<div class="post-metadata">

**Author:** ![Bjorn](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Bjorn](https://community.kinsta.com/u/Bjorn)\
**Post date:** [November 16, 2021, 9:06am UTC](https://community.kinsta.com/t/error-establishing-database-connection/1050/7 "2021-11-16T09:06:29Z")

</div>

No problem, I’ll just delete the old sites and will regularly make backups. Talking about backups, it would be a great feature if local/cloud backups could be made directly from within Devkinsta (like Flywheel is offering)…just a tip 😉 Keep up the great work and looking forward to new improvements. Thanks and best regards,  
Bjorn
