ClickHouse
This page describes how to create and maintain connections to your ClickHouse database.
Before you can write your data to ClickHouse, you should first establish a connection to your ClickHouse database.
Create a ClickHouse connection
Simple example
Alter a ClickHouse connection
Certain connection options are considered mutable, meaning that in some cases, you can run a SQL command to alter an existing ClickHouse connection rather than creating a new one.
For example, take the ClickHouse connection we created previously:
To change the database you are connecting to but keep everything else the same without having to create an entirely new connection, you can run the following command:
Drop a ClickHouse connection
If you no longer need a connection, you can easily drop it with the following SQL command:
However, note that if there are existing tables or jobs that are dependent upon the connection in question, the connection cannot be deleted.
Learn More
To discover which connection options are mutable, and to learn more about the options, please see the SQL command reference for ClickHouse.
Last updated