Connect to Databend
Databend supports multiple connection methods to suit different use cases. All options below work with both Databend Cloud and self-hosted Databend.
Quick Selection
| I want to... | Recommended | Link |
|---|---|---|
| Run SQL queries interactively | BendSQL (CLI) or DBeaver (GUI) | SQL Clients |
| Build an application | Language-specific Driver | Drivers |
| Create dashboards & reports | BI/Visualization Tools | Visualization |
Connection Strings
| Deployment | Format |
|---|---|
| Databend Cloud | databend://<user>:<pass>@<tenant>.gw.<region>.default.databend.com:443/<db>?warehouse=<name> |
| Self-Hosted | databend://<user>:<pass>@<host>:<port>/<db> |
Getting Your Connection String
- Databend Cloud: Log in → Click Connect → Copy the generated DSN
- Self-Hosted: Use your server address with the configured user credentials
SQL Clients
| Tool | Type | Best For |
|---|---|---|
| BendSQL | CLI | Developers, Scripting, Automation |
| DBeaver | GUI | Data Analysis, Visual Query Building |
Drivers
| Language | Guide |
|---|---|
| Go | Golang Driver |
| Python | Python Connector |
| Node.js | Node.js Driver |
| Java | JDBC Driver |
| Rust | Rust Driver |
Visualization Tools
| Tool | Type |
|---|---|
| Grafana | Monitoring & Dashboards |
| Tableau | Business Intelligence |
| Superset | Data Exploration |
| Metabase | Self-Service BI |
| Jupyter | Data Science Notebooks |
| Deepnote | Collaborative Notebooks |
| MindsDB | ML Platform |
| Redash | SQL-Based Dashboards |