You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: markdown-pages/en/tidb/release-8.5/tidb-cloud-lake/guides/connect-using-bendsql.md
+29-56Lines changed: 29 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: BendSQL
3
-
summary: BendSQL is a command line tool that has been designed specifically for Databend. It allows users to establish a connection with Databend and execute queries directly from a CLI window.
3
+
summary: BendSQL is a command line tool that has been designed specifically for TiDB Cloud Lake. It allows users to establish a connection with TiDB Cloud Lake and execute queries directly from a CLI window.
4
4
---
5
5
6
6
# BendSQL
7
7
8
-
[BendSQL](https://github.com/databendlabs/bendsql) is a command line tool that has been designed specifically for Databend. It allows users to establish a connection with Databend and execute queries directly from a CLI window.
8
+
[BendSQL](https://github.com/databendlabs/bendsql) is a command line tool that has been designed specifically for TiDB Cloud Lake. It allows users to establish a connection with TiDB Cloud Lake and execute queries directly from a CLI window.
9
9
10
-
BendSQL is particularly useful for those who prefer a command line interface and need to work with Databend on a regular basis. With BendSQL, users can easily and efficiently manage their databases, tables, and data, and perform a wide range of queries and operations with ease.
10
+
BendSQL is particularly useful for those who prefer a command line interface and need to work with TiDB Cloud Lake on a regular basis. With BendSQL, users can easily and efficiently manage their databases, tables, and data, and perform a wide range of queries and operations with ease.
If you are connecting to a self-hosted Databend instance, you can use the admin users specified in the [databend-query.toml](https://github.com/databendlabs/databend/blob/main/scripts/distribution/configs/databend-query.toml) configuration file, or you can connect using an SQL user created with the [CREATE USER](/tidb-cloud-lake/sql/create-user.md) command.
150
-
151
-
For connections to Databend Cloud, you can use the default `cloudapp` user or an SQL user created with the [CREATE USER](/tidb-cloud-lake/sql/create-user.md) command. Please note that the user account you use to log in to the [Databend Cloud console](https://app.databend.com) cannot be used for connecting to Databend Cloud.
149
+
For connections to TiDB Cloud Lake, you can use the default `cloudapp` user or an SQL user created with the [CREATE USER](/tidb-cloud-lake/sql/create-user.md) command. Note that the user account you use to log in to the [TiDB Cloud Lake console](https://app.lake.tidbcloud.com) cannot be used for connecting to TiDB Cloud Lake.
152
150
153
151
## Connecting with BendSQL
154
152
155
-
BendSQL allows you to connect to both Databend Cloud and self-hosted Databend instances.
153
+
BendSQL allows you to connect to both TiDB Cloud Lake instances.
156
154
157
155
### Customize Connections with a DSN
158
156
159
-
A DSN (Data Source Name) is a simple yet powerful way to configure and manage your Databend connection in BendSQL using a single URI-style string. This method allows you to embed your credentials and connection settings directly into your environment, streamlining the connection process.
157
+
A DSN (Data Source Name) is a simple yet powerful way to configure and manage your TiDB Cloud Lake connection in BendSQL using a single URI-style string. This method allows you to embed your credentials and connection settings directly into your environment, streamlining the connection process.
The best practice for connecting to Databend Cloud is to obtain your DSN from Databend Cloud and export it as an environment variable. To obtain your DSN:
205
+
The best practice for connecting to TiDB Cloud Lake is to obtain your DSN from TiDB Cloud Lake and export it as an environment variable. To obtain your DSN:
208
206
209
-
1. Log in to Databend Cloud and click **Connect** on the **Overview** page.
207
+
1. Log in to TiDB Cloud Lake and click **Connect** on the **Overview** page.
210
208
211
209
2. Select the database and warehouse you want to connect to.
212
210
213
211
3. Your DSN will be automatically generated in the **Examples** section. Below the DSN, you'll find a BendSQL snippet that exports the DSN as an environment variable named `BENDSQL_DSN` and launches BendSQL with the correct configuration. You can copy and paste it directly into your terminal.
summary: DBeaver supports connecting to Databend using a built-in driver categorized under Analytical, available starting from version 24.3.1.
3
+
summary: DBeaver supports connecting to TiDB Cloud Lake using a built-in driver categorized under Analytical, available starting from version 24.3.1.
4
4
---
5
5
6
6
# DBeaver
7
7
8
-
[DBeaver](https://dbeaver.com/) supports connecting to Databend using a built-in driver categorized under **Analytical**, available starting from **version 24.3.1**.
8
+
[DBeaver](https://dbeaver.com/) supports connecting to TiDB Cloud Lake using a built-in driver categorized under **Analytical**, available starting from **version 24.3.1**.
9
9
10
10

11
11
12
12
## Prerequisites
13
13
14
14
- DBeaver 24.3.1 or later version installed
15
-
- For self-hosted Databend: [Docker](https://www.docker.com/) installed (if using Docker deployment)
16
15
17
16
## User Authentication
18
17
19
-
If you are connecting to a self-hosted Databend instance, you can use the admin users specified in the [databend-query.toml](https://github.com/databendlabs/databend/blob/main/scripts/distribution/configs/databend-query.toml) configuration file, or you can connect using an SQL user created with the [CREATE USER](/tidb-cloud-lake/sql/create-user.md) command.
18
+
For connections to TiDB Cloud Lake, you can use the default `cloudapp` user or an SQL user created with the [CREATE USER](/tidb-cloud-lake/sql/create-user.md) command. Please note that the user account you use to log in to the [TiDB Cloud Lake console](https://app.lake.tidbcloud.com) cannot be used for connecting to TiDB Cloud Lake.
20
19
21
-
For connections to Databend Cloud, you can use the default `cloudapp` user or an SQL user created with the [CREATE USER](/tidb-cloud-lake/sql/create-user.md) command. Please note that the user account you use to log in to the [Databend Cloud console](https://app.databend.com) cannot be used for connecting to Databend Cloud.
20
+
## Connecting to TiDB Cloud Lake
22
21
23
-
##Connecting to Self-Hosted Databend
22
+
### Step 1: Obtain TiDB Cloud Lake Connection Information
24
23
25
-
## Step 1: Start Databend (Docker)
26
-
27
-
Run the following command to launch a Databend instance:
28
-
29
-
> **Note:**
30
-
>
31
-
> If no custom values for `QUERY_DEFAULT_USER` or `QUERY_DEFAULT_PASSWORD` are specified when starting the container, a default `root` user will be created with no password.
1. In DBeaver, go to **Database** > **New Database Connection** to open the connection wizard, then select **Databend** under the **Analytical** category.
3. Click **Test Connection** to verify the connection. If this is your first time connecting to Databend, you will be prompted to download the driver. Click **Download** to proceed.
## Step 1: Obtain Databend Cloud Connection Information
60
-
61
-
Log in to Databend Cloud to obtain connection information. For more information, see [Connecting to a Warehouse](/tidb-cloud-lake/guides/warehouse.md#connecting).
24
+
Log in to TiDB Cloud Lake to obtain connection information. For more information, see [Connecting to a Warehouse](/tidb-cloud-lake/guides/warehouse.md#connecting).
> If your `user` or `password` contains special characters, you need to provide them separately in the corresponding fields (e.g., the `Username` and `Password` fields in DBeaver). In this case, Databend will handle the necessary encoding for you. However, if you're providing the credentials together (e.g., as `user:password`), you must ensure that the entire string is properly encoded before use.
30
+
> If your `user` or `password` contains special characters, you need to provide them separately in the corresponding fields (e.g., the `Username` and `Password` fields in DBeaver). In this case, TiDB Cloud Lake will handle the necessary encoding for you. However, if you're providing the credentials together (e.g., as `user:password`), you must ensure that the entire string is properly encoded before use.
68
31
69
-
## Step 2: Configure Databend Cloud Connection
32
+
###Step 2: Configure TiDB Cloud Lake Connection
70
33
71
34
1. In DBeaver, go to **Database** > **New Database Connection** to open the connection wizard, then select **Databend** under the **Analytical** category.
72
35
@@ -84,6 +47,6 @@ Log in to Databend Cloud to obtain connection information. For more information,
5. Click **Test Connection** to verify the connection. If this is your first time connecting to Databend, you will be prompted to download the driver. Click **Download** to proceed. Once the download is complete, the test connection should succeed:
50
+
5. Click **Test Connection** to verify the connection. If this is your first time connecting to TiDB Cloud Lake, you will be prompted to download the driver. Click **Download** to proceed. Once the download is complete, the test connection should succeed:
0 commit comments