ClickHouse - Connect with Tabix
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
- A Public Cloud project in your OVHcloud account.
- A ClickHouse service running on your OVHcloud Analytics (this guide can help you to meet this requirement).
- A ClickHouse instance configured to accept incoming connections.
- A stable version of Tabix installed and public network connectivity (Internet). This guide was created using Tabix version 22.05.25.
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:
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:
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!