MySQL connector reference
The MySQL connector is in Public Preview. Contact your Databricks account team to request access.
Find reference material for the MySQL connector in Lakeflow Connect, including data type mappings and DDL operation handling.
Data type mappings
Databricks automatically transforms MySQL data types into Delta-compatible data types. The following table shows how MySQL types map to Delta types:
MySQL type | Delta type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Slowly changing dimensions (SCD)
The MySQL connector supports both SCD Type 1 and SCD Type 2:
- SCD Type 1: Only the latest version of each row is maintained. Updates overwrite previous values.
- SCD Type 2: All versions of each row are maintained with start and end timestamps.
For more information, see Enable history tracking (SCD type 2).