---
title: MySQL ingestion connector
description: Ingest MySQL data into Databricks with an Lakeflow Connect integrated CDC pipeline. Covers source setup, connections, pipeline creation, and features.
canonical_url: https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql
---

# 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](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql-integrated-pipeline.md). 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](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                                               |
| API-based pipeline authoring                        | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                                               |
| Declarative Automation Bundles                      | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                                               |
| Incremental ingestion                               | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                                               |
| Unity Catalog governance                            | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                                               |
| Orchestration using Lakeflow Jobs                   | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                                               |
| SCD type 2                                          | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported                                                                                                                                                                       |
| API-based column selection and deselection          | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported for integrated CDC pipelines only. See [Column selection for MySQL](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql-column-selection.md). |
| API-based row filtering                             | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported                                                                                                                                                                       |
| Automated schema evolution: New and deleted columns | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                                               |
| Automated schema evolution: Data type changes       | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported                                                                                                                                                                       |
| Automated schema evolution: Column renames          | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported<br />Treated as a new column (new name) and deleted column (old name).                                                                                        |
| Automated schema evolution: New tables              | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported<br />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](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| OAuth M2M                                       | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| OAuth (manual refresh token)                    | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| Basic authentication (username/password)        | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Basic authentication (API key)                  | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| Basic authentication (service account JSON key) | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |

## What to know before you start

| Topic                                                                                                                  | Why it matters                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Databricks user persona](https://docs.databricks.com/gcp/en/connect/managed-ingestion.md)                             | The workflow depends on your Databricks user persona:<br /><ul><li>Single-user: An admin user configures the source database and creates a Unity Catalog connection and an integrated CDC pipeline.</li><li>Multi-user: An admin user configures the source database and creates a connection that non-admin users can use to create pipelines.</li></ul> |
| [Deployment environment](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql-source-setup.md)          | 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](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql.md#authentication-methods) | The steps to create a connection depend on the authentication method you choose.                                                                                                                                                                                                                                                                          |
| [Interface](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/faq.md)                                      | The steps to create a connection and a pipeline depend on the interface.                                                                                                                                                                                                                                                                                  |
| [Ingestion frequency](https://docs.databricks.com/gcp/en/ldp/concepts/pipeline-mode.md)                                | The pipeline schedule depends on your latency and cost requirements.                                                                                                                                                                                                                                                                                      |
| [Common patterns](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/common-patterns.md)                    | 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](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql.md#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     | <ul><li>[Configure MySQL for ingestion into Databricks](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql-source-setup.md).</li><li>Use Catalog Explorer to create a connection. See [Create a MySQL connection](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql-connection.md).</li><li>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](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql-integrated-pipeline.md).</li></ul> |
| Non-admin | Use any supported interface to create an integrated CDC pipeline. See [Create an integrated CDC pipeline for MySQL](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/mysql-integrated-pipeline.md).                                                                                                                                                                                                                                                                                                                                                                                           |
