# Oops error due to database timeout

**URL:** <https://meta.discourse.org/t/oops-error-due-to-database-timeout/186895>\
**Category:** Self-hosting\
**Created:** [April 15, 2021, 2:29am UTC](https://meta.discourse.org/t/oops-error-due-to-database-timeout/186895 "2021-04-15T02:29:24Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![shantaram](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@shantaram](https://meta.discourse.org/u/shantaram)\
**Post date:** [April 15, 2021, 9:53am UTC](https://meta.discourse.org/t/oops-error-due-to-database-timeout/186895/16 "2021-04-15T09:53:56Z")

</div>

I have fixed the problem. the 5 seconds setting is a default db setting. we has change the setting as below:

```
DISCOURSE_DB_TIMEOUT: 10000
DISCOURSE_DB_CONNECT_TIMEOUT: 10

```

and more  
we find the db is very slowly.  
and we have use a new db on linux instead of the old one on windows.

thank you all the same. discourse is very wonderful.

---

_[View the full topic](https://meta.discourse.org/t/oops-error-due-to-database-timeout/186895)._
