---
title: MySQL connector limitations
description: Limits for MySQL ingestion in Lakeflow Connect, including supported versions, binary log requirements, DDL handling, and unsupported data types.
canonical_url: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/mysql-limits
---

# MySQL connector limitations

The MySQL connector has limits on supported versions, authentication, binary log settings, read replicas, schema changes, and data types. Review them before you create a pipeline.

## General database connector limitations

The limitations in this section apply to all database connectors in Lakeflow Connect. Keep reading for connector-specific limitations.

* When you run a scheduled pipeline, alerts don't trigger immediately. Instead, they trigger when the next update runs.
* When a source table is deleted, the destination table is not automatically deleted. You must delete the destination table manually. This behavior is not consistent with Lakeflow pipelines behavior.
* During source maintenance periods, Databricks might not be able to access your data.
* If a source table name conflicts with an existing destination table name, the pipeline update fails.
* Multi-destination pipeline support is API-only.
* The source system assumes that the cursor columns are monotonically increasing.
* <a id="lob-size-limit" />Any single large-object value larger than 10 MiB (10,485,760 bytes) is ingested as an empty value. The limit counts bytes for both text and binary values, so text with multi-byte characters reaches it at fewer than 10,485,760 characters. Oversized text values, such as `LONGTEXT` or `JSON`, become an empty string (`''`), and oversized binary values become an empty binary value. This applies to the initial snapshot, full refreshes, and change data capture. Other columns in the same row are ingested normally. The pipeline update doesn't fail or report an error, and you can't change this limit.

- Managed ingestion pipelines aren't supported for workspaces in AWS GovCloud regions (FedRAMP High).
- Managed ingestion pipelines aren't supported for FedRAMP Moderate workspaces in the `us-east-2` or `us-west-1` regions.

## <a id="versions" />MySQL versions and variations

The connector supports the following MySQL versions and platforms:

* **Amazon RDS for MySQL**: Version 5.7.44 and later (both standalone and HA deployments)
* **Amazon Aurora MySQL**: Version 5.7.mysql\_aurora.2.12.2 and later (primary instance only for HA setups)
* **Amazon Aurora MySQL Serverless**: Supported
* **Azure Database for MySQL Flexible Servers**: Version 5.7.44 and later (both standalone and HA deployments)
* **Google Cloud SQL for MySQL**: Version 5.7.44 and later, Version 8.0 and later
* **MySQL on EC2**: Version 5.7.44 and later

The connector doesn't support MariaDB or other MySQL-compatible databases.

## <a id="auth" />Authentication

* The connector supports username and password authentication with the following authentication plugins:
  * MySQL 5.7.44: The replication user must be created using the `sha256_password` authentication plugin.
  * MySQL 8.0.x and later: Both `sha256_password` and `caching_sha2_password` plugins are supported.

* The **Test Connection** button in the UI might fail for users using `sha256_password` or `caching_sha2_password`, even when credentials are correct. This is a known issue. You can still create the connection and proceed with pipeline setup.

* The connector doesn't support the `mysql_native_password` authentication plugin. To check and change the user's plugin, see [Change the authentication plugin of an existing user](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/mysql-privileges.md#change-plugin).

## <a id="proxy" />Network connectivity

The connector doesn't support proxies that terminate MySQL connections, such as Amazon RDS Proxy. Connect to the database instance or, for Aurora, the cluster writer endpoint, not to a proxy endpoint. Through such a proxy, **Test Connection** can succeed, but change data capture fails when it starts.

## <a id="binlog" />Binary log requirements

* Binary logging must be enabled with `binlog_format=ROW` and `binlog_row_image=FULL`.

* <a id="partial-json" />`binlog_row_value_options=PARTIAL_JSON` is not supported. With this setting, MySQL logs updates to JSON columns as partial changes instead of full documents. When the connector reads a partial change, it skips the table and reports the `INGESTION_GATEWAY_MYSQL_TABLE_SKIPPED_DUE_TO_PARTIAL_JSON` error. This happens on any `UPDATE` to a table with a JSON column, even if the update doesn't change a JSON value.

  To recover, set `binlog_row_value_options` to an empty value globally and in every MySQL session that writes to the ingested tables. Then run a [full refresh](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/full-refresh.md) of the affected table. If you run the full refresh while the setting is still enabled, the next `UPDATE` skips the table again.

* If the binlog is purged before the connector processes changes, you must perform a full refresh of all tables in the pipeline.

* Databricks recommends 7 days of binlog retention. Setting a lower value might cause binlogs to be cleaned up before the connector processes them.

## <a id="read-replica" />Read replica support

* Read replica support is only available for Amazon RDS for MySQL, Azure Database for MySQL, and MySQL on EC2.
* The connector doesn't support ingesting from Aurora MySQL read replicas. You must connect to the Aurora primary instance (writer endpoint).
* When you use read replicas, replication lag can affect data freshness.

## <a id="pipelines" />Pipelines

Don't reconnect an ingestion pipeline to a different source replica or node. See [Reconnecting to a different source node](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/mysql-limits.md#source-node-change).

The following limitations apply to gateway-based pipelines:

* Each ingestion pipeline must be associated with exactly one ingestion gateway. Gateways cannot be shared across pipelines.
* Although the ingestion pipeline runs on serverless compute, the ingestion gateway must run on classic compute.
* The ingestion gateway runs continuously to capture changes before binlogs can be truncated or purged.

### <a id="source-node-change" />Reconnecting to a different source node

The connector checkpoints its progress as a binlog file name and position. Those coordinates are only meaningful on the server that wrote them, so there is no checkpoint that carries across servers.

The connector records the `server_uuid` of the MySQL server it checkpointed against. If a later update finds a different `server_uuid`, the update fails with the [INGESTION\_GATEWAY\_MYSQL\_SERVER\_UUID\_CHANGED](https://docs.databricks.com/aws/en/error-messages/error-classes.md#ingestion_gateway_mysql_server_uuid_changed) error. This prevents the connector from resuming from coordinates on the wrong server.

To recover, do one of the following:

* Reconnect the pipeline to the original MySQL server. Ingestion resumes from its existing checkpoint.
* Run a full refresh of all tables in the pipeline. This binds the pipeline to the new server.

Refreshing only some tables doesn't recover the pipeline. The tables you didn't refresh still hold checkpoints from the original server, so the update keeps failing.

To perform a full refresh, see [Fully refresh target tables](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/full-refresh.md).

## <a id="schema-evolution" />Schema evolution and DDL operations

The connector automatically handles new and deleted columns.

* When a new non-spatial column appears in the source, Databricks automatically ingests it. Rows that existed before the column was added have `NULL` in that column, unless the column needs to be backfilled (see [DDL operation handling](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/mysql-limits.md#ddl-handling)).
* Spatial data type columns are not supported and can't be ingested.
* When a column is deleted from the source, Databricks doesn't delete it automatically. Instead, the connector uses a table property to set the deleted column to `inactive` in the destination. If a column with the same name is later added to the source, the flow fails with `CANNOT_WRITE_TO_INACTIVE_COLUMNS`. In this case, run a full refresh of the table. A full refresh also removes inactive columns from the destination table.

This is true for new and deleted tables within a schema if you ingest the entire schema.

### <a id="ddl-handling" />DDL operation handling

The following table describes how the connector handles DDL operations on a source table. Unless a row says otherwise, when an operation requires a full refresh, the flow for the table fails with an error in the event log, and ingestion of that table stops until you refresh it. Other tables in the pipeline aren't affected.

| DDL operation                                                                                                                                                                                                               | Behavior                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Action required                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ADD COLUMN` for a nullable column without a `DEFAULT` clause, or with `DEFAULT NULL`                                                                                                                                       | The column is added to the destination table automatically. A continuous pipeline restarts itself to pick up the new schema. Existing rows have `NULL` in the new column. This includes columns positioned with `FIRST` or `AFTER` and statements that add multiple columns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | None                                                                                                                                                                           |
| `ADD COLUMN ... NOT NULL` without a `DEFAULT` clause                                                                                                                                                                        | The column is added to the destination table automatically, and no error is raised. A continuous pipeline restarts itself to pick up the new schema. MySQL fills existing rows with the data type's implicit default (for example, `0` or an empty string) without writing row events to the binlog, so existing rows have `NULL` in the destination until they're updated.                                                                                                                                                                                                                                                                                                                                                                    | Full refresh, if existing rows need the source values                                                                                                                          |
| `ADD COLUMN` with a non-`NULL` `DEFAULT` value, a generated column, or an `AUTO_INCREMENT` column                                                                                                                           | The source populates existing rows with a value that isn't captured in the binlog, so the destination needs a backfill. The flow fails with `CDC_INCOMPATIBLE_SCHEMA_CHANGES.ADD_COLUMN_WITH_BACKFILL`. After a full refresh, existing rows contain the default or generated values.                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Full refresh                                                                                                                                                                   |
| `ADD COLUMN` with a spatial data type                                                                                                                                                                                       | The table is skipped, with an error in the event log. The flow for this table is marked as failed in the ingestion pipeline.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Drop the column from the source table and then run a full refresh, or remove the table from the pipeline. Excluding the column from the table's column selection isn't enough. |
| `DROP COLUMN`                                                                                                                                                                                                               | The column is set to `inactive` in the destination and is no longer updated. If you later add a column with the same name, the flow fails with `CANNOT_WRITE_TO_INACTIVE_COLUMNS`. See [Schema evolution and DDL operations](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/mysql-limits.md#schema-evolution).                                                                                                                                                                                                                                                                                                                                                                                                                  | None, unless you later add a column with the same name (full refresh)                                                                                                          |
| `MODIFY COLUMN` or `CHANGE COLUMN` that doesn't change the destination data type (for example, `VARCHAR(50)` to `VARCHAR(100)`, or `CHAR` to `VARCHAR`)                                                                     | No change is needed in the destination. Ingestion continues. If the statement omits `NOT NULL` on a `NOT NULL` column, the column becomes nullable, which is handled as a nullability change.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | None, unless the column becomes nullable (see the nullability row)                                                                                                             |
| `MODIFY COLUMN` or `CHANGE COLUMN` that widens the data type (for example, `INT` to `BIGINT`)                                                                                                                               | If [type widening](https://docs.databricks.com/aws/en/tables/features/type-widening.md) is enabled on the destination table, the destination column is widened and ingestion continues. Otherwise, the flow fails with `CDC_INCOMPATIBLE_SCHEMA_CHANGES.UNSUPPORTED_DATA_TYPE_CHANGE`. [Integrated change data capture (CDC) pipelines](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/mysql-integrated-pipeline.md) enable type widening on destination tables by default. For pipelines that use an ingestion gateway, set `delta.enableTypeWidening` to `true` in the pipeline's table properties. See [Set Delta Lake table properties](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/table-properties.md). | None if type widening is enabled. Otherwise, full refresh                                                                                                                      |
| Any other data type change with `MODIFY COLUMN` or `CHANGE COLUMN` (for example, `BIGINT` to `INT`, `INT UNSIGNED` to `INT`, `DATETIME` to `DATE`, or `TEXT` to `INT`)                                                      | The flow fails with `CDC_INCOMPATIBLE_SCHEMA_CHANGES.UNSUPPORTED_DATA_TYPE_CHANGE`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Full refresh                                                                                                                                                                   |
| Nullability change with `MODIFY COLUMN` or `CHANGE COLUMN`                                                                                                                                                                  | Changing a column from `NULL` to `NOT NULL` fails the flow with `CDC_INCOMPATIBLE_SCHEMA_CHANGES.COLUMN_NULLABLE_TO_NON_NULLABLE`. Changing a column from `NOT NULL` to `NULL` is applied automatically if type widening is enabled on the destination table. Otherwise, the flow fails with `CDC_INCOMPATIBLE_SCHEMA_CHANGES.COLUMN_NON_NULLABLE_TO_NULLABLE`. A `MODIFY COLUMN` statement that omits `NOT NULL` makes the column nullable in MySQL.                                                                                                                                                                                                                                                                                          | Full refresh, except for `NOT NULL` to `NULL` with type widening enabled                                                                                                       |
| Column rename with `CHANGE COLUMN` or `RENAME COLUMN`                                                                                                                                                                       | The flow fails with `CDC_INCOMPATIBLE_SCHEMA_CHANGES.COLUMNS_ADDED_AND_DELETED`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Full refresh                                                                                                                                                                   |
| `ALTER COLUMN ... SET DEFAULT` or `ALTER COLUMN ... DROP DEFAULT`                                                                                                                                                           | Ignored. Default values don't affect rows that are already replicated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | None                                                                                                                                                                           |
| `ADD PRIMARY KEY` or `ADD UNIQUE` constraint, including `CREATE UNIQUE INDEX`                                                                                                                                               | The table is skipped, with an error in the event log.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Full refresh                                                                                                                                                                   |
| `DROP PRIMARY KEY`                                                                                                                                                                                                          | The table is skipped, with an error in the event log.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Full refresh                                                                                                                                                                   |
| `DROP` of a unique constraint or unique index                                                                                                                                                                               | If the source table has no primary key and the connector uses this unique key to identify rows, the table is skipped, with an error in the event log. Otherwise, the operation is ignored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Full refresh if the table is skipped. Otherwise, none                                                                                                                          |
| `RENAME INDEX` or `RENAME KEY` of a unique index or key                                                                                                                                                                     | The table is skipped, with an error in the event log.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Full refresh                                                                                                                                                                   |
| Table options that don't change the logical schema: `ENGINE`, `ROW_FORMAT`, `COMMENT`, `COLLATE`, `KEY_BLOCK_SIZE`, and the `AUTO_INCREMENT=` and `TABLESPACE=` table options; and `ALGORITHM`, `LOCK`, and `FORCE` clauses | Ignored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | None                                                                                                                                                                           |
| Adding, dropping, or renaming non-unique indexes; adding or dropping foreign keys or `CHECK` constraints                                                                                                                    | Ignored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | None                                                                                                                                                                           |
| The `CHARSET=` table option                                                                                                                                                                                                 | The table is skipped, with an error in the event log.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Full refresh                                                                                                                                                                   |
| `ADD PARTITION`, `COALESCE PARTITION`, `REORGANIZE PARTITION`, or `REMOVE PARTITIONING`                                                                                                                                     | Ignored. These operations don't remove rows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | None                                                                                                                                                                           |
| `DROP PARTITION`, `TRUNCATE PARTITION`, `EXCHANGE PARTITION`, `DISCARD PARTITION`, or `IMPORT PARTITION`                                                                                                                    | These operations change table data without writing row events to the binlog. The table is skipped, with an error in the event log.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Full refresh                                                                                                                                                                   |
| `PARTITION BY` on an existing table (repartitioning)                                                                                                                                                                        | The table is skipped, with an error in the event log.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Full refresh                                                                                                                                                                   |
| `DISCARD TABLESPACE` or `IMPORT TABLESPACE`                                                                                                                                                                                 | These operations change table data without writing row events to the binlog. The table is skipped, with an error in the event log. A full refresh can't read the table while its tablespace is discarded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Full refresh, after `IMPORT TABLESPACE`                                                                                                                                        |
| `TRUNCATE TABLE`                                                                                                                                                                                                            | The table is skipped, with an error in the event log.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Full refresh                                                                                                                                                                   |
| `RENAME TABLE` or `ALTER TABLE ... RENAME TO`                                                                                                                                                                               | The flow for the old table name fails with an error in the event log. The destination table is kept but is no longer updated. If you ingest the entire schema, the connector ingests the table under its new name as a new destination table. If you select tables individually, the table isn't ingested under its new name. Other tables are still ingested, but each triggered pipeline update fails until you remove the old table name from the pipeline.                                                                                                                                                                                                                                                                                 | None if you ingest the entire schema. If you select tables individually, add the table under its new name to the pipeline and remove the old table name.                       |
| `RENAME TABLE` that swaps tables (for example, `RENAME TABLE t TO t_old, t_new TO t`, as online schema change tools such as gh-ost and pt-online-schema-change do)                                                          | The flow for `t` fails with an error in the event log. The destination table for `t` stops updating and keeps its old schema and data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Full refresh of `t`                                                                                                                                                            |
| `DROP TABLE`                                                                                                                                                                                                                | The table is removed from ingestion, with an error in the event log. The flow for this table is marked as failed in the ingestion pipeline. The destination table isn't deleted. If you select tables individually, other tables are still ingested, but each triggered pipeline update fails until you remove the table from the pipeline.                                                                                                                                                                                                                                                                                                                                                                                                    | None if you ingest the entire schema. If you select tables individually, remove the table from the pipeline.                                                                   |
| `CREATE TABLE` (when ingesting an entire schema)                                                                                                                                                                            | If the table has no spatial types, it's automatically ingested as a new destination table. If the table has spatial types, it isn't ingested and no flow is created. The event log lists it as an unsupported object (`UNSUPPORTED_COLUMN_DATA_TYPE`) in a schema exploration warning.                                                                                                                                                                                                                                                                                                                                                                                                                                                         | None                                                                                                                                                                           |

### Run a full refresh

To perform a full refresh, see [Fully refresh target tables](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/full-refresh.md). If you configure an [auto full refresh policy](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/full-refresh.md#auto-full-refresh), the pipeline automatically runs a full refresh of the affected table for the operations in the preceding table that require one. This applies to both gateway-based and integrated CDC pipelines. Automatic full refreshes of a table run at least `min_interval_hours` apart (24 by default), so a refresh can be delayed until that interval passes. The automatic full refresh doesn't run when you re-add a dropped column, add a spatial column, add a `NOT NULL` column without a `DEFAULT` clause, or swap tables with `RENAME TABLE`. After `DISCARD TABLESPACE`, the automatic full refresh fails because the table can't be read until you run `IMPORT TABLESPACE`.

## <a id="staging" />Staging

The staging catalog can't be a foreign catalog.

## <a id="tables" />Tables and data types

* Databricks recommends ingesting 250 or fewer tables per pipeline. However, there is no limit on the number of rows or columns that are supported within these objects.
* MySQL is a two-level namespace. The `source_schema` and `source_table` names are case-sensitive.
* Although you can ingest from multiple source schemas in one pipeline, you can't ingest two tables of the same name to the same destination schema. For example, you can't ingest both `schema1.customers` and `schema2.customers` to the same destination schema. However, you can ingest them to different destination schemas using a [multi-destination pipeline](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/multi-destination-pipeline.md).
* Spatial data types (GEOMETRY, POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, GEOMETRYCOLLECTION) are not supported. If spatial columns are present in selected tables, the table is skipped, with an error in the event log.

## <a id="character-sets" />Character sets and collation

The connector decodes character columns (`CHAR`, `VARCHAR`, and `TEXT` types) using each column's MySQL character set and writes the values to the destination as UTF-8.

### <a id="unsupported-character-sets" />Unsupported character sets

The connector supports all MySQL character sets except the following:

`armscii8`, `dec8`, `geostd8`, `hp8`, `keybcs2`, and `swe7`.

If a selected table has a character column that uses an unsupported character set, the connector skips the table and records an `INGESTION_GATEWAY_TABLE_SKIPPED_DUE_TO_UNSUPPORTED_CHARSET` error in the event log. Other tables in the pipeline continue to ingest. To ingest the table, convert the affected columns to a supported character set, such as `utf8mb4`.

## <a id="known-issues" />Known issues

* The **Test Connection** button fails for MySQL users with `sha256_password` or `caching_sha2_password` authentication, even when credentials are valid. This is a known limitation. You can still create connections and pipelines.
