# MySQL to ClickHouse: CDC, Replication, and Data Integration Guide

DevFeed: [MySQL to ClickHouse: CDC, Replication, and Data Integration Guide](<https://devfeed.tech/articles/mysql-to-clickhouse-cdc-replication-and-data-integration-guide-82247.md>)

Original publisher: [Read original article](<https://estuary.dev/blog/mysql-to-clickhouse>)

Author: Team Estuary

Published: 2025-06-05T14:00:00Z

Content type: tutorial

Language: en

Sources: [Estuary](<https://devfeed.tech/sources/estuary.md>)

Topics: [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [CRUD](<https://devfeed.tech/topics/crud.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [Continuous Delivery (CD)](<https://devfeed.tech/topics/continuous-delivery.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cdc](<https://devfeed.tech/tags/cdc.md>), [change-data-capture](<https://devfeed.tech/tags/change-data-capture.md>), [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [data](<https://devfeed.tech/tags/data.md>), [data-integration](<https://devfeed.tech/tags/data-integration.md>), [dekaf](<https://devfeed.tech/tags/dekaf.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [replication](<https://devfeed.tech/tags/replication.md>)

## AI overview

This guide compares ways to move data from MySQL to ClickHouse, including binlog-based change data capture (CDC), scheduled batch extraction, ClickHouse ClickPipes, managed integration platforms, and a Debezium with Kafka stack. It explains CDC setup requirements and production concerns such as initial backfills, updates and deletes, schema changes, replication lag, binlog retention, and failover. It also describes Estuary's ClickHouse materialization behavior, including versioned rows, query-time deduplication, and soft or hard deletes.

## Source excerpt

Learn how MySQL-to-ClickHouse replication works, compare CDC and batch approaches, and understand setup, schema, delete, and production considerations.