Create a JDBC data source in DataGrip pointing to your ClickHouse server so you can browse schemas, run queries, and manage data visually.
Install the official ClickHouse JDBC driver (com.clickhouse:clickhouse-jdbc) via DataGrip’s “Drivers” tab. This enables SSL, compression, and all ClickHouse-specific settings.
Open File → Data Sources, click +, choose ClickHouse, and paste the JDBC URL. DataGrip auto-downloads the driver if missing.
Use the pattern jdbc:clickhouse://HOST:PORT/DATABASE?user=USER&password=PWD
.Replace placeholders with your server details.
jdbc:clickhouse://analytics.acme.com:8123/ecommerce?user=reporting&password=S3cr3t
Set ssl=true
for encrypted traffic and compress=true
for faster transfers. Toggle socket_timeout
or session_id
when running long analytical jobs.
Yes. In the SSH/SSL tab select “Use SSH Tunnel”, fill bastion host, port, and key. DataGrip forwards traffic securely to ClickHouse.
Click Test Connection.A green check confirms authentication, driver compatibility, and network reachability.
After saving, double-click the new data source, open a new SQL console, and run a query such as SELECT count() FROM Orders
.
Refresh the schema tree or grant SHOW DATABASES
and SELECT
privileges to your user.
Either change the database in the JDBC URL or run USE other_db
in the console.
Store credentials in DataGrip’s password vault, enable SSL, and keep the driver updated.Limit result set size in Settings → Database to prevent memory spikes.
Incorrect ports (8123 HTTP vs 9000 TCP) and mismatched drivers cause most failures. Confirm your ClickHouse server’s port and driver version.
Increase query_timeout
in the JDBC URL or DataGrip’s “Query Execution” settings to avoid premature cancellations.
Run the sample ecommerce query below to verify full CRUD access.
.
Yes. Use the cloud-provided host, port 9440, and enable ssl=true
.
Since 2023.1 DataGrip reads system tables to provide code completion, table hints, and quick documentation.
Press Ctrl+F5 or right-click the database and choose Reload Schemas.