# Database drivers

> Database backends for the cache metadata of the self-hosted GitHub Actions cache server: SQLite, PostgreSQL and MySQL.

Source: https://gha-cache-server.falcondev.io/database-drivers

The database holds cache keys, versions and upload state, never payloads. Pick it with [`DB_DRIVER`](https://gha-cache-server.falcondev.io/configuration.md#db_driver).

| Driver | `DB_DRIVER` | Replicas | Best for |
| --- | --- | --- | --- |
| [SQLite](https://gha-cache-server.falcondev.io/database-drivers/sqlite.md) | `sqlite` (default) | One | One host, no extra service |
| [PostgreSQL](https://gha-cache-server.falcondev.io/database-drivers/postgres.md) | `postgres` | Many | Production, several replicas |
| [MySQL](https://gha-cache-server.falcondev.io/database-drivers/mysql.md) | `mysql` | Many | Production, several replicas |

The server runs its migrations on startup.