Skip to main content

Create Connection

You'll create a Unity Catalog connection to an external data source in ~10 min.

Prereqs: Managed connectors overview, network connectivity between Databricks and the target system

What you'll build

A Unity Catalog connection object that stores credentials and connectivity details for an external system. This connection is the foundation for both query federation (foreign catalogs) and ingestion pipelines (Lakeflow Connect).

Prerequisites

  • A Databricks workspace with metastore-admin or account-admin privileges.
  • Network connectivity from the Databricks VPC/VNet to the external system. This may require:
  • Credentials for the external system (username/password, service account, or OAuth).

Steps

1. Open the connections page

  1. In the Databricks workspace, click Catalog in the left sidebar.
  2. Click External Data, then click the gear icon (⚙️) to access the connections section.
warning

Access connections through the gear icon (⚙️), not the External Locations tab.

External Data button
  1. Click Connections.
Add connection button

2. Configure the connection

  1. Enter a connection name — descriptive enough to identify the source system.
  2. Select the connection type (PostgreSQL, MySQL, SQL Server, Snowflake, etc.). See supported connectors for the full list.
  3. Enter the authentication details for the external system.

3. Test and create

  1. Click Test Connection to verify connectivity.
  2. Once the test passes, click Create.

4. Video walkthrough (optional)

Verify

  1. In the Databricks workspace, navigate to Catalog > External Data > gear icon (⚙️) > Connections.
  2. Click the new connection and confirm its status shows as active.

Troubleshoot

Test Connection fails with a timeout

The Databricks VPC/VNet cannot reach the external system. Verify VPC peering, security group rules, and firewall settings. For on-premises systems, a VPN or dedicated network connection may be required.

Test Connection fails with authentication error

Verify the credentials entered match the external system. Check that the database user has the necessary permissions (at minimum, read access on the target schemas).

Next