ClickHouse Setup Guide
Prerequisites
- A ClickHouse Cloud service.
- The
defaultuser credentials for the service. The password is shown only once, when the service is created.
Setup Guide
Step 1: Create a dedicated user (Recommended)
-
Log in to the ClickHouse Cloud console and open your service.
-
Click + to open a new query.
-
Run the following statements as the
defaultuser. Replace<password>with a strong password.CREATE USER matia_user IDENTIFIED BY '<password>';
GRANT CURRENT GRANTS ON *.* TO matia_user; -
Additionally, you can revoke access to certain databases from the
matia_user. For example, by executing the following statement, we restrict access to thedefaultdatabase:REVOKE ALL ON default.* FROM matia_user; -
Make a note of the Username and Password — you'll need them to configure Matia.
Step 2: Find your hostname and port
- In the ClickHouse Cloud console, select your service and click Connect.
- Select Native.
- Copy the Hostname. It follows the format
<service>.<region>.<provider>.clickhouse.cloud. - Make a note of the Port. For most services, this is
9440.
Step 3: Connect ClickHouse in Matia
- Under Authentication, enter:
- Hostname — the hostname you copied in Step 2.
- Port — the port you noted in Step 2.
- Username — the user you created in Step 1, for example
matia_user. - Password — the password for that user.
- Enter an Asset Name.
- (Optional) Enter a Description.
- (Optional) Assign Tags.
- Select an Owner.
- Verify that your ClickHouse service is successfully connected by clicking on Test Connection.
- Click Connect.