INSERT and SELECT queries to exchange data between ClickHouse and MySQL.
The MySQL database engine translate queries to the MySQL server so you can perform operations such as SHOW TABLES or SHOW CREATE TABLE.
You cannot perform the following queries:
RENAMECREATE TABLEALTER
Creating a database
host:port— MySQL server address.database— Remote database name.user— MySQL user.password— User password.
enable_compression
Enables zlib compression for the MySQL protocol connection. When set to 1, ClickHouse requests protocol-level compression from the MySQL server.
Default value: 0.
Example:
Data types support
All other MySQL data types are converted into String.
Nullable is supported.
Global variables support
For better compatibility you may address global variables in MySQL style, as@@identifier.
These variables are supported:
versionmax_allowed_packet
By now these variables are stubs and don’t correspond to anything.