ClickHouse - Connect with Tabix

Bases de conhecimento

ClickHouse - Connect with Tabix


Icons/System/eye-open Created with Sketch. 4 visualizações 25.02.2026 Clickhouse

Objective

Analytics engines let you focus on building and analyzing data while OVHcloud handles the database infrastructure.

This guide explains how to connect to a ClickHouse Analytics instance using Tabix, a lightweight and user-friendly SQL client for ClickHouse.

Requirements

Concept

A ClickHouse service can be managed in several ways.

One of the simplest, yet powerful, approaches is to use the Command Line Interface (CLI), as shown in the guide: Connect to ClickHouse with CLI, or by using programming languages and drivers.

Another option is to interact directly using a graphical management tool designed for ClickHouse: Tabix.

To do so, you will install Tabix, configure your ClickHouse Analytics service to accept incoming connections, and finally connect to it using Tabix.

Instructions

Installing Tabix

Follow the official Tabix documentation to install Tabix.

You are now ready to connect to your ClickHouse instance.

Connecting with Tabix

In Tabix, create a new connection and fill in the required fields (name, port, login, password, and SSL certificate if applicable).

You are now ready to interact with your Analytics service for ClickHouse.

Inserting and querying data

Use the SQL editor in Tabix to create your first database and table and insert sample data. Below is an example that creates the database company and table customer, then inserts a sample row.

Loading data into ClickHouse

To load 100 random rows into a table called customer, you can use the SQL editor in Tabix with the following script:

CREATE DATABASE IF NOT EXISTS company;

CREATE TABLE IF NOT EXISTS company.customer
(
    id UInt32,
    firstName String,
    lastName String,
    email String,
    age UInt8,
    createdAt DateTime
) ENGINE = MergeTree()
ORDER BY id;

INSERT INTO company.customer
SELECT
    number + 1 AS id,
    arrayElement(['John','Jane','Mary','Michael','Sarah','Robert','Linda','James','Patricia','David'], rand() % 10 + 1) AS firstName,
    arrayElement(['Smith','Johnson','Williams','Jones','Brown','Davis','Miller','Wilson','Moore','Taylor'], rand() % 10 + 1) AS lastName,
    concat(lower(arrayElement(['John','Jane','Mary','Michael','Sarah','Robert','Linda','James','Patricia','David'], rand() % 10 + 1)),
           '.',
           lower(arrayElement(['Smith','Johnson','Williams','Jones','Brown','Davis','Miller','Wilson','Moore','Taylor'], rand() % 10 + 1)),
           '@',
           arrayElement(['example.com','email.com','mail.com','test.com','demo.com'], rand() % 5 + 1)
    ) AS email,
    18 + rand() % 60 AS age,
    now() AS createdAt
FROM numbers(100);

SELECT '100 random rows inserted into the customer table.' AS message;

Querying data with the aggregation framework

You can use SQL GROUP BY queries in ClickHouse to aggregate your data. For example, to count the number of customers for each age:

SELECT
    age,
    COUNT(*) AS count
FROM company.customer
GROUP BY age
ORDER BY age ASC;

This query summarizes customers by age.

Go further

Explore the Tabix documentation for all available features and capabilities.

ClickHouse service capabilities

Configuring vRack for Public Cloud

Join our community of users.

We want your feedback!

We would love to help answer questions and appreciate any feedback you may have.

If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.

Are you on Discord? Connect to our channel at https://discord.gg/ovhcloud and interact directly with the team that builds our databases service!

Artigos relacionados