> ## Documentation Index
> Fetch the complete documentation index at: https://docs2.growthbook.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up Clickhouse as a data source

> This document outlines the steps needed to add your Clickhouse database to GrowthBook.

Connecting to Clickhouse is very straightforward. You just need to provide the connection string and credentials. If you
are using something like Clickhouse Cloud, you can find the connection string in the UI.

<Frame>
  <img src="https://mintcdn.com/growthbook-ea15456d/4KUzUtpaNUGa50Xc/static/images/guides/guide-clickhouse-1.png?fit=max&auto=format&n=4KUzUtpaNUGa50Xc&q=85&s=91ca87ec49b2da1273bb59f2a9a999de" alt="Clickhouse Cloud Connection String" width="600" data-path="static/images/guides/guide-clickhouse-1.png" />
</Frame>

If you are making connection credentials just for GrowthBook, you can give it read-only access to the database.

If you are using GrowthBook Cloud (app.growthbook.io), make sure to whitelist the ip address 52.70.79.40 if applicable.
