Skip to main content

MySQL ingestion connector

The MySQL connector in Lakeflow Connect ingests data from MySQL databases into Databricks using change data capture (CDC). Your setup depends on your deployment environment, authentication method, and Databricks user persona.

To ingest from MySQL, create an integrated CDC pipeline, which extracts and applies changes in one pipeline. See Create an integrated CDC pipeline for MySQL. The gateway-based architecture, which uses a separate ingestion gateway and ingestion pipeline, is in Public Preview and isn't available to new customers.

Feature availability​

Feature

Availability

UI-based pipeline authoring

Green check icon Supported

API-based pipeline authoring

Green check icon Supported

Declarative Automation Bundles

Green check icon Supported

Incremental ingestion

Green check icon Supported

Unity Catalog governance

Green check icon Supported

Orchestration using Lakeflow Jobs

Green check icon Supported

SCD type 2

Green check icon Supported

API-based column selection and deselection

Green check icon Supported for integrated CDC pipelines only. See Column selection for MySQL.

API-based row filtering

Red X icon Not supported

Automated schema evolution: New and deleted columns

Green check icon Supported

Automated schema evolution: Data type changes

Red X icon Not supported

Automated schema evolution: Column renames

Green check icon Supported

Treated as a new column (new name) and deleted column (old name).

Automated schema evolution: New tables

Green check icon Supported

If you ingest the entire schema. See the limitations on the number of tables per pipeline.

Maximum number of tables per pipeline

250

Feature

Availability

UI-based pipeline authoring

Green check icon Supported

API-based pipeline authoring

Green check icon Supported

Declarative Automation Bundles

Green check icon Supported

Incremental ingestion

Green check icon Supported

Unity Catalog governance

Green check icon Supported

Orchestration using Lakeflow Jobs

Green check icon Supported

SCD type 2

Green check icon Supported

API-based column selection and deselection

Green check icon Supported for integrated CDC pipelines only. See Column selection for MySQL.

API-based row filtering

Red X icon Not supported

Automated schema evolution: New and deleted columns

Green check icon Supported

Automated schema evolution: Data type changes

Red X icon Not supported

Automated schema evolution: Column renames

Green check icon Supported

Treated as a new column (new name) and deleted column (old name).

Automated schema evolution: New tables

Green check icon Supported

If you ingest the entire schema. See the limitations on the number of tables per pipeline.

Maximum number of tables per pipeline

250

Authentication methods​

Authentication method

Availability

OAuth U2M

Red X icon Not supported

OAuth M2M

Red X icon Not supported

OAuth (manual refresh token)

Red X icon Not supported

Basic authentication (username/password)

Green check icon Supported

Basic authentication (API key)

Red X icon Not supported

Basic authentication (service account JSON key)

Red X icon Not supported

Authentication method

Availability

OAuth U2M

Red X icon Not supported

OAuth M2M

Red X icon Not supported

OAuth (manual refresh token)

Red X icon Not supported

Basic authentication (username/password)

Green check icon Supported

Basic authentication (API key)

Red X icon Not supported

Basic authentication (service account JSON key)

Red X icon Not supported

What to know before you start​

Topic

Why it matters

Databricks user persona

The workflow depends on your Databricks user persona:

  • Single-user: An admin user configures the source database and creates a Unity Catalog connection and an integrated CDC pipeline.
  • Multi-user: An admin user configures the source database and creates a connection that non-admin users can use to create pipelines.

Deployment environment

The source database configuration depends on the MySQL deployment environment (Amazon RDS, Aurora MySQL, Azure Database for MySQL, Google Cloud SQL for MySQL, or MySQL on EC2).

Authentication method

The steps to create a connection depend on the authentication method you choose.

Interface

The steps to create a connection and a pipeline depend on the interface.

Ingestion frequency

The pipeline schedule depends on your latency and cost requirements.

Common patterns

Depending on your ingestion needs, the pipeline might use configurations like history tracking, column selection, and row filtering. Supported configurations vary by connector. See Feature availability.

Topic

Why it matters

Databricks user persona

The workflow depends on your Databricks user persona:

  • Single-user: An admin user configures the source database and creates a Unity Catalog connection and an integrated CDC pipeline.
  • Multi-user: An admin user configures the source database and creates a connection that non-admin users can use to create pipelines.

Deployment environment

The source database configuration depends on the MySQL deployment environment (Amazon RDS, Aurora MySQL, Azure Database for MySQL, Google Cloud SQL for MySQL, or MySQL on EC2).

Authentication method

The steps to create a connection depend on the authentication method you choose.

Interface

The steps to create a connection and a pipeline depend on the interface.

Ingestion frequency

The pipeline schedule depends on your latency and cost requirements.

Common patterns

Depending on your ingestion needs, the pipeline might use configurations like history tracking, column selection, and row filtering. Supported configurations vary by connector. See Feature availability.

Start ingesting from MySQL​

The following table provides an overview of the end-to-end MySQL ingestion workflow, based on user type:

User

Steps

Admin

  1. Configure MySQL for ingestion into Databricks.
  2. Use Catalog Explorer to create a connection. See Create a MySQL connection.
  3. Create an integrated CDC pipeline, or grant non-admin users access to the connection so they can create pipelines. See Create an integrated CDC pipeline for MySQL.

Non-admin

Use any supported interface to create an integrated CDC pipeline. See Create an integrated CDC pipeline for MySQL.

User

Steps

Admin

  1. Configure MySQL for ingestion into Databricks.
  2. Use Catalog Explorer to create a connection. See Create a MySQL connection.
  3. Create an integrated CDC pipeline, or grant non-admin users access to the connection so they can create pipelines. See Create an integrated CDC pipeline for MySQL.

Non-admin

Use any supported interface to create an integrated CDC pipeline. See Create an integrated CDC pipeline for MySQL.