> For the complete documentation index, see [llms.txt](https://agon.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agon.rlib.io/setup/troubleshooting/mysql-timeouts.md).

# MySQL Timeouts

If you notice that data is not being saved to your MySQL database, check the console for errors. If you notice errors related to the database timing out, you may need to enable keep-alive.&#x20;

This setting may be required depending on how your MySQL server is configured.

To enable keep-alive, open the script's database configuration file located in:

> &#x20;             <mark style="color:yellow;">**`addons/agon/agon.rlib`**</mark>

Locate the <mark style="color:red;">**`keepalive`**</mark> setting which should be in the database advanced table:

```json
"adv"
{
    "debug"         "false"
    "heartbeat"     "true"
    "interval"      300
    "keepalive"     "false"
}
```

Change the <mark style="color:red;">**`keepalive`**</mark> setting from false to <mark style="color:red;">**`true`**</mark>:

```json
"adv"
{
    "debug"         "false"
    "heartbeat"     "true"
    "interval"      300
    "keepalive"     "true"
}
```
