# Adding a database connection to a project

{% hint style="info" %}
Database connections require an Enterprise license.

Your external database must allow connections from the following Fabricate IP addresses:

* US instance (<https://fabricate.tonic.ai/>)
  * 184.72.239.148
  * 3.231.122.192
* EU instance (<http://eu.fabricate.tonic.ai/>)
  * 3.67.149.135
  * 3.69.97.191
    {% endhint %}

## **Supported database platforms**

Database connections can connect to the following databases:

* Databricks
* MySQL
* Oracle
* PostgreSQL
* Snowflake
* SQL Server

## **Defining the connection**

To add a database connection to a project:

1. In the navigation panel, click **Connect external database**.

<figure><img src="/files/WAYZyWbvOy2T3JkPbqSY" alt=""><figcaption><p>Option to connect to an external database</p></figcaption></figure>

<figure><img src="/files/yvbF7szEnkBhiDHSATHD" alt=""><figcaption><p>Connect live database panel to make the database connection</p></figcaption></figure>

2. From the **Server Connection** dropdown list, select the [server connection](/fabricate/workspaces/workspace-server-connections.md) where the database is located.\
   \
   You can optionally add a new server connection or edit the selected server connection.\
   \
   New server connections are added to the available server connections for the workspace.\
   \
   Note that any edits to the selected server connection apply to all of the locations where the server connection is used.
3. In the **Database Name** field, provide the name of the database.
4. To test the connection to the database, click **Test Connection**.
5. To save the database connection, click **Connect database**.

Fabricate automatically names the database connection based on the database name.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/fabricate/project-and-database-management/data-agent-db-create-manage/database-add-connection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
