# MySQL + ClickHouse

> Automatically sync MySQL tables and data to ClickHouse with incremental loading. Start your 14-day free trial.

Source: https://www.erathos.com/en/pipelines/mysql-clickhouse
Em português: https://www.erathos.com/pipelines/mysql-clickhouse

MySQL is an open-source relational database management system, widely used to store, organize, and retrieve data in web and enterprise applications. ClickHouse, on the other hand, is a column-oriented DBMS designed for online analytical processing (OLAP) that provides robust storage and large-scale data analysis capabilities.

With Erathos, you can integrate data from MySQL to ClickHouse in just a few minutes. Our platform handles the entire data pipeline to your analytical environment, allowing you to blend your data with other sources in your data warehouse. This way, your time is focused on what actually drives value — extracting valuable insights and making more data-driven decisions.

### What MySQL data does Erathos sync to ClickHouse?

The integration automatically syncs key MySQL objects:

- **Selected tables** — incremental replication of any configured table
- **Schema drift** — new columns are automatically detected and added to the destination
- **Primary keys and timestamps** — used for efficient incremental syncing
- **Historical data** — full historical load followed by incremental updates

### Why sync MySQL with ClickHouse?

In ClickHouse, you run OLAP queries on your MySQL data in milliseconds, making it ideal for high-concurrency dashboards and high-volume time-series analysis.

### How it works

Erathos connects to MySQL via its official API and syncs your data incrementally — only new or updated records are processed in each run, keeping pipelines fast and ClickHouse costs predictable. You choose the sync frequency (from 5 minutes to daily), the objects to sync, and the destination dataset. Every run is logged with full observability: execution time, rows processed, errors with context, and instant alerts via Slack or email if anything goes wrong.

## Data in your data warehouse in minutes

### Out-of-the-box MySQL connector

Replicate MySQL tables to Clickhouse with incremental sync and automatic schema drift detection — without breaking pipelines when the structure changes.

### Full control over your MySQL pipelines

Configure frequency and sync mode on a per-table basis. Data lands in ClickHouse optimized for OLAP queries, delivering millisecond-level analytics even across millions of rows.

### End-to-end observability

No more finding out about MySQL issues only after the business team complains. Every run is logged with runtime, rows processed, and error context. Get automatic alerts via Slack, Discord, or email the moment anything deviates from expected behavior — keeping replication always up to date without impacting your transactional database.

## Centralizing MySQL data into ClickHouse has never been easier

Erathos is a data ingestion platform built for teams that need to replicate operational databases for analytics. With the MySQL connector, you can incrementally sync tables and transactional records to ClickHouse — featuring schema drift detection and comprehensive execution logs.

## FAQ

### What is Erathos and how can it help my company?

Erathos is a data ingestion platform built for reliability, transparency, and control. We help data teams connect tools like MySQL to their data warehouse — with complete observability for every execution, zero maintenance, and without the opacity of traditional market tools.

### How does Erathos sync data from MySQL to ClickHouse?

Erathos uses incremental replication to sync MySQL tables to ClickHouse. Schema drift is automatically detected — if a column is added or modified in MySQL, the pipeline adapts without manual intervention.

### How frequently does Erathos sync data from MySQL to Clickhouse?

You can configure the sync frequency from every 5 minutes to daily, at the table level. Erathos uses incremental sync—only new or updated records are processed in each run, keeping your MySQL pipeline efficient and ClickHouse costs predictable.

### What happens if a MySQL sync fails?

Erathos automatically detects failures and sends alerts to your email, Slack, or Discord with full context — not just "job failed." Smart retries handle transient errors, and every run is logged with runtime, rows processed, and error context so your team can debug in minutes, not hours.

### Is there a free trial for the MySQL connector?

Yes. Every Erathos connector comes with a 14-day free trial. Connect MySQL to ClickHouse and start syncing immediately — no credit card required.
