Prepare ClickHouse schema for clicktail
masterBefore ingesting data, you must ensure the target ClickHouse database and tables exist. The project provides SQL schema files in the schema/ directory.
- Create the database using the provided
db.sql. - Create the specific table for your parser (e.g.,
mysql.sql) using theclickhouse-client.
# Create Database
cat schema/db.sql | clickhouse-client --multiline
# Create Table for MySQL slow logs
cat schema/mysql.sql | clickhouse-client --multiline