> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_police/integrations/database.md).

# Database

`rcore_police` requires a MySQL database connector to store officer data, fines, reports, and other persistent records.

## 🔎 Auto Detection

```lua
Config.Database = AUTO_DETECT
```

Override with the matching constant if detection picks the wrong one:

| Constant        | Resource                                                                    |
| --------------- | --------------------------------------------------------------------------- |
| `Database.OX`   | `oxmysql`                                                                   |
| `Database.NONE` | No database connector found - `rcore_police` cannot run without a database. |

{% hint style="warning" %}
Only `oxmysql` is supported. Leave it on `AUTO_DETECT` (recommended).
{% endhint %}
