跳到主要内容

Connect to Databend

Databend supports multiple connection methods to suit different use cases. All SQL clients and drivers below work with both Databend Cloud and self-hosted Databend deployments - the only difference is how you obtain your connection string.

Obtaining Connection Strings

DeploymentHow to Get Connection StringConnection Format
Databend Cloud1. Log in to Databend Cloud
2. Click Connect on the Overview page
3. Select your database and warehouse
4. Copy the generated connection details
databend://<username>:<password>@<tenant>.gw.<region>.default.databend.com:443/<database>?warehouse=<warehouse_name>
Self-HostedUse your deployment information:
• Default user: root (or custom SQL user)
• Host: your server address (e.g., localhost)
databend://<username>:<password>@<hostname>:<port>/<database>

SQL Clients & Tools

ClientTypeBest ForKey Features
BendSQLCommand LineDevelopers, ScriptsNative CLI, Rich formatting, Multiple install options
DBeaverGUI ApplicationData Analysis, Visual QueriesBuilt-in driver, Cross-platform, Query builder

Developer Drivers

LanguageDriverUse CaseDocumentation
GoNative DriverBackend ApplicationsGolang Guide
PythonPython ConnectorData Science, AnalyticsPython Guide
Node.jsJavaScript DriverWeb ApplicationsNode.js Guide
JavaJDBC DriverEnterprise ApplicationsJDBC Guide
RustNative DriverSystem ProgrammingRust Guide

Connection Methods

MethodSecurity LevelUse CaseSetup Complexity
Direct ConnectionStandardDevelopment, Testing⭐ Simple
AWS PrivateLinkHighProduction, Enterprise⭐⭐⭐ Advanced
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册