> ## Documentation Index
> Fetch the complete documentation index at: https://buildbuddy-io-buildbuddy.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Database Configuration

The database section configures the database that BuildBuddy stores metadata in.

> [!WARNING]
>
> This section is **required** for BuildBuddy to function.

## Configuration Options

### Required Options

**data\_source** `string` *required*

This is a connection string used by the database driver to connect to the database. MySQL, PostgreSQL, and SQLite databases are supported.

## Example Configurations

### SQLite

```yaml config.yaml theme={null}
database:
  data_source: "sqlite3:///tmp/buildbuddy.db"
```

### MySQL

```yaml config.yaml theme={null}
database:
  data_source: "mysql://buildbuddy_user:pAsSwOrD@tcp(12.34.56.78)/buildbuddy_db"
```

### PostgreSQL

```yaml config.yaml theme={null}
database:
  data_source: "postgresql://buildbuddy_user:pAsSwOrD@12.34.56.78:5433/buildbuddy_db"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.