> For the complete documentation index, see [llms.txt](https://documentation.proto.cx/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.proto.cx/docs/settings/teamspaces/database-connections.md).

# Database Connections

{% hint style="info" %}
Connect a database so AI agents can query it directly within workflows, using the [SQL query](/docs/modules/ai-agents/workflows-and-actions/sql-query.md) action.
{% endhint %}

Go to **Settings → Teamspace → Database Connections**.

{% hint style="warning" %}
All database connections are read-only. AI agents can query data but cannot modify, insert, or delete records.
{% endhint %}

***

## Connect a database

1. Select **Connect Database**.
2. Provide your database's connection details (host, credentials, and database name).
3. Confirm the connection.

Once connected, the database appears in the table with its **Name**, **Type**, and **Status**.

***

## Related

{% content-ref url="/pages/h76VVFDGINQSgTbHDUvJ" %}
[SQL query](/docs/modules/ai-agents/workflows-and-actions/sql-query.md)
{% endcontent-ref %}
