---
title: "A MySQL Journey"
description: "ClickHouse extended its MySQL wire-protocol and syntax compatibility so online-only BI tools like Looker Studio and Tableau Online, which allow no custom drivers, can query ClickHouse directly."
url: "https://swe.quest/articles/a-mysql-journey-b6b26aa61d03be26"
canonical: "https://clickhouse.com/blog/mysql-support-in-clickhouse-the-journey"
source: "ClickHouse"
published: "2023-10-05"
difficulty: "medium"
kind: "Case study"
reading_minutes: 15
tags: ["analytics","sql","mysql","databases"]
---

# A MySQL Journey

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-10-05, 15 min read, Case study. Original: [https://clickhouse.com/blog/mysql-support-in-clickhouse-the-journey](https://clickhouse.com/blog/mysql-support-in-clickhouse-the-journey)

## Summary

ClickHouse extended its MySQL wire-protocol and syntax compatibility so online-only BI tools like Looker Studio and Tableau Online, which allow no custom drivers, can query ClickHouse directly. Iterative testing against these tools surfaced gaps fixed through discovery statements (SHOW COLUMNS, SHOW KEYS), the NULL-safe \<=\> operator, and aliases such as MAKEDATE, STR\_TO\_DATE, REGEXP, INSTR, TO\_DAYS and DATE\_FORMAT, plus new format substitutions. Some aliases behave differently from MySQL (e.g. re2 vs ICU regex), and full MySQL compatibility is explicitly not a goal.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- MySQL syntax ([easy posts on MySQL](https://swe.quest/tags/mysql.md?difficulty=easy))

## Keywords

ClickHouse, MySQL protocol, Looker Studio, Tableau Online, AWS QuickSight, re2

## Related posts

- [Visualizing Data with ClickHouse - Part 3 - Metabase](https://swe.quest/articles/visualizing-data-with-clickhouse-part-3-metabase-ad449fea60496af1.md): ClickHouse · 2022-10-19 · Medium · 7 min read · Analytics & OLAP, SQL
  Metabase connects to ClickHouse via a plugin driver over the HTTP port and suits less SQL-savvy business users through its drag-and-drop "question" builder, while a SQL editor handles complex charts by pushing all transformation into the query.
- [How LINE MANGA used ClickHouse to enable real-time analysis without moving a single row](https://swe.quest/articles/how-line-manga-used-clickhouse-to-enable-real-time-analysis-without-moving-a-542da6f6b53d1c64.md): ClickHouse · 2025-06-16 · Easy · 5 min read · Analytics & OLAP, MySQL, Distributed databases, Developer productivity
  LINE MANGA uses ClickHouse as a federated query layer over its horizontally and vertically sharded MySQL fleet, querying data in place rather than ingesting it.
- [Loading Parquet data into MySQL with ClickHouse](https://swe.quest/articles/loading-parquet-data-into-mysql-with-clickhouse-e9a6bbccc1c8e2b3.md): ClickHouse · 2026-09-10 · Medium · 6 min read · MySQL, Data pipelines, SQL
  MySQL has no native Parquet import, but clickhouse-local can read a Parquet file over HTTP with the \`url\` table function and write it straight into a MySQL table via \`INSERT INTO FUNCTION mysql(...)\`.
- [Corsearch replaces MySQL with ClickHouse for content and brand protection](https://swe.quest/articles/corsearch-replaces-mysql-with-clickhouse-for-content-and-brand-protection-e9a82a909bc26445.md): ClickHouse · 2024-07-11 · Easy · 6 min read · Analytics & OLAP, Observability, Vector search, MySQL
  Corsearch replaced a pre-aggregated, heavily partitioned MySQL setup with ClickHouse to serve interactive anti-piracy search-engine analytics across 10+ filterable dimensions with daily, weekly and monthly rollups.
- [HIFI’s migration from BigQuery to ClickHouse](https://swe.quest/articles/hifi-s-migration-from-bigquery-to-clickhouse-5318550bbb72f66e.md): ClickHouse · 2023-01-09 · Medium · 8 min read · Analytics & OLAP, SQL, Databases, JavaScript
  HIFI moved music royalty analytics from BigQuery to ClickHouse because BigQuery's per-query pricing discouraged exploratory use and slot reservations didn't fit a startup's shifting workloads.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
