# Connect to a Data Source

> Part of the NocoDB documentation (Product docs > Integrations > Data Sources). Index of all pages: https://nocodb.com/llms.txt. Any docs page is available as Markdown by adding `.md` to its URL.

URL: https://nocodb.com/docs/product/integrations/data-sources/connect-to-data-source
Last updated: 2026-09-25

Learn how to connect to an external data-source (PG/MySQL) in NocoDB.

To connect an external Database as a new Data Source for NocoDB, follow the steps below:

1. Click on the Base name in the left sidebar to access the **Base homepage**
2. Click **Connect External Data** button
3. Provide a name to the data source
4. Select connection to pick credentials for the database
   (a) Select connection from the list of available connections in the dropdown\
   (b) Click on `+ New connection` button to create a new connection instead
5. Configure / Change database & schema details as required. If default database & schema details were provided during connection creation, these details will be pre-filled.
6. [Configure permissions](#configuring-permissions) for the data source
7. Click on `Test Database Connection` button to verify the connection
8. Click on `Add Source` button to save the data source

<img alt="data source" src={__img0} placeholder="blur" />

<img alt="data source" src={__img1} placeholder="blur" />

<img alt="data source" src={__img2} placeholder="blur" />

## Before you begin

NocoDB recommends using **MySQL version 5.7 or later** and **PostgreSQL version 14 or later** for best compatibility and performance.

## Configuring Permissions

Data source permissions in NocoDB determine the level of access and modifications allowed on the connected database.

<img alt="data source-1" src={__img3} placeholder="blur" />

NocoDB provides the following options for schema and data permissions:

### Allow Data Edit

When Allow Data Edit is enabled, users can insert, update, and delete records from the tables. This provides the flexibility to manage the data directly from the NocoDB UI but should be used with caution to avoid unintentional changes to the records in the external data source. This level of access is ideal for administrative users who need to modify data directly.

By default, data editing is enabled

When data editing is disabled, users can still view the data and perform read-only operations such as filtering, sorting, and grouping. This ensures that users can access the data for analysis and reporting purposes without the risk of modifying the records.

<Callout type="info">
  Data editing can only be disabled when schema editing is also disabled
</Callout>

### Allow Schema Edit

Allow Schema Edit enables users to modify the structure of the database schema. When enabled, users can create, modify, and delete tables, fields and relationships (links) within the connected datasource from NocoDB UI. This provides flexibility to adjust the database schema design as needed from UI.

<Callout type="warn">
  NocoDB strongly advises against enabling the schema editing option unless absolutely necessary. Use with extreme caution, as improper changes can severely impact the data integrity and functionality of the connected data source.
</Callout>

By default, schema editing is disabled.

Even when schema editing is disabled, users can still

* add (augment) virtual columns such as Lookup, Rollup and Formula. These virtual columns do not alter the underlying schema of the connected data source.
* create views to customize the data presentation without modifying the original tables.
* create webhooks to trigger external actions based on specific events within the connected datasource.
* collaborate with other users by explicitly inviting them to the base or by sharing views.

## Availability

* **Microsoft SQL Server** is also supported as an external data source, available as an add-on for Enterprise customers. Reach out to the support team ([support@nocodb.com](mailto:support@nocodb.com)) to enable it.
* **Oracle Database** is also supported as an external data source, available as an add-on for Enterprise customers. Reach out to the support team ([support@nocodb.com](mailto:support@nocodb.com)) to enable it. Oracle connections require the **host**, **port** (default `1521`), **username**, **password**, and a **service name / SID**.
* Option (4b) to create a new connection is available only if the user has the required permissions to create new connection (Workspace Creator+)

---

## Related pages

- [Sync with Data Source](https://nocodb.com/docs/product/integrations/data-sources/sync-with-data-source.md): Learn how to sync changes done in external data source with NocoDB.
- [Actions on Data Sources](https://nocodb.com/docs/product/integrations/data-sources/actions-on-data-sources.md): Learn more about actions that can be performed on data sources in NocoDB.
- [Updating Secrets](https://nocodb.com/docs/product/integrations/data-sources/updating-secret.md): Learn how to update secrets in NocoDB using the nc-secret-mgr package.
