Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
384be15
Add Beekeeper Studio TiDB walkthrough
hankhoffmeier Sep 4, 2026
1ab6024
Add files via upload
hankhoffmeier Sep 4, 2026
5733d66
Added link resource to Beekeeper walkthrough
hankhoffmeier Sep 4, 2026
e58a173
Updated a couple of steps on the instructions.
hankhoffmeier Sep 7, 2026
473f938
Updates for TLS
hankhoffmeier Sep 7, 2026
ae57140
Last update
hankhoffmeier Sep 7, 2026
8ab1dcc
Require certificate verification for CA cert connections
hankhoffmeier Sep 8, 2026
0a5820f
Require Reject Unauthorized for CA cert verification
hankhoffmeier Sep 22, 2026
7ce6bfe
Add Beekeeper Studio guide to TOC-develop.md
hankhoffmeier Oct 20, 2026
3d2deb8
Remove spaced em dash flagged by vale
hankhoffmeier Oct 20, 2026
97ba2f4
Update develop/dev-guide-gui-beekeeper-studio.md
hankhoffmeier Nov 5, 2026
30018f7
Apply review suggestions
hankhoffmeier Nov 23, 2026
cebb70f
Clarify CA certificate verification wording
hankhoffmeier Nov 23, 2026
9b19989
Apply suggestion from @seominjea1942
hankhoffmeier Nov 23, 2026
4093690
Use example user prefix in screenshot
hankhoffmeier Dec 1, 2026
da1da80
Apply batched suggestions from code review
hankhoffmeier Dec 3, 2026
bf4082e
Apply suggestion from @qiancai
hankhoffmeier Dec 3, 2026
8057fe6
Apply suggestion from @qiancai
hankhoffmeier Dec 3, 2026
1e055a7
Apply suggestion from @qiancai
hankhoffmeier Dec 3, 2026
9407b9e
Apply suggestion from @qiancai
hankhoffmeier Dec 3, 2026
b83b145
Apply suggestion from @qiancai
hankhoffmeier Dec 3, 2026
d0eb18a
Apply suggestion from @qiancai
hankhoffmeier Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion TOC-develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- [VS Code](/develop/dev-guide-gui-vscode-sqltools.md)
- [MySQL Workbench](/develop/dev-guide-gui-mysql-workbench.md)
- [Navicat](/develop/dev-guide-gui-navicat.md)
- [Beekeeper Studio](/develop/dev-guide-gui-beekeeper-studio.md)
- Drivers & ORMs
- [Choose a Driver or ORM](/develop/dev-guide-choose-driver-or-orm.md)
- Java
Expand Down Expand Up @@ -116,4 +117,4 @@
- [SQL Development Specifications](/develop/dev-guide-sql-development-specification.md)
- [Bookshop Example Application](/develop/dev-guide-bookshop-schema-design.md)
- Cloud Native Development Environment
- [Gitpod](/develop/dev-guide-playground-gitpod.md)
- [Gitpod](/develop/dev-guide-playground-gitpod.md)
145 changes: 145 additions & 0 deletions develop/dev-guide-gui-beekeeper-studio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
---
title: Connect to TiDB with Beekeeper Studio
summary: Learn how to connect to TiDB using Beekeeper Studio.
---

# Connect to TiDB with Beekeeper Studio

[Beekeeper Studio](https://www.beekeeperstudio.io/) is a free, open-source database manager with a modern, easy-to-use interface for Windows, macOS, and Linux. Beekeeper Studio has a built-in, native **TiDB** connection type.

In this tutorial, you can learn how to connect to TiDB using Beekeeper Studio Community Edition.

> **Note:**
>
> This tutorial is compatible with {{{ .starter }}}, {{{ .essential }}}, {{{ .premium }}}, TiDB Cloud Dedicated, and TiDB Self-Managed.

## Prerequisites

To complete this tutorial, you need:

- [Beekeeper Studio Community Edition **4.3.0** or later](https://www.beekeeperstudio.io/get). Beekeeper Studio Community Edition is free and open source, so no paid account is required.
- A TiDB cluster.

**If you don't have a TiDB cluster, you can create one as follows:**

- (Recommended) [Create a {{{ .starter }}} instance](/develop/dev-guide-build-cluster-in-cloud.md).
- [Deploy a local test TiDB Self-Managed cluster](/quick-start-with-tidb.md#deploy-a-local-test-cluster) or [Deploy a production TiDB Self-Managed cluster](/production-deployment-using-tiup.md).

## Connect to TiDB

Connect to TiDB depending on the TiDB deployment option you've selected.

<SimpleTab>
<div label="{{{ .starter }}} or Essential">
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

1. Navigate to the [**My TiDB**](https://tidbcloud.com/tidbs) page, and then click the name of your target {{{ .starter }}} or Essential instance to go to its overview page.

2. Click **Connect** in the upper-right corner. A connection dialog is displayed.

3. Ensure the configurations in the connection dialog match your operating environment.

- **Connection Type** is set to `Public Endpoint`.
- If a **Branch** field is displayed, keep the default value, `main`.
- **Connect With** is set to `Beekeeper Studio` (or the closest match, such as `General`, if Beekeeper Studio is not in the list).
- **Operating System** matches your environment.

4. Click **Generate Password** to create a random password.

> **Tip:**
>
> If you have created a password before, you can either use the original password or click **Reset Password** to generate a new one.

5. Launch Beekeeper Studio. On the connections screen, click **New Connection**, select **TiDB** from the **Connection Type** list, and fill in the connection form. Copy **HOST**, **PORT**, and **USERNAME** from the TiDB Cloud connection dialog into the **Host**, **Port**, and **User** fields, and enter the **Password** from step 4. For {{{ .starter }}} instances, and for {{{ .essential }}} instances that use the endpoint shared model, the user name includes an instance-specific prefix, such as `3pTAoNNegb47Uc8.root`, not just `root`.

![Beekeeper Studio: configure a TiDB connection](/media/develop/beekeeper-studio-connection-settings.png)

6. Turn on the **Enable SSL** toggle, since {{{ .starter }}} and Essential require an encrypted connection.

With only **Enable SSL** turned on, Beekeeper Studio encrypts the connection but does not verify the server's certificate. To check the certificate against a CA, click the arrow next to **Enable SSL** to expand the section, select the [ISRG Root X1 certificate](https://letsencrypt.org/certs/isrgrootx1.pem) in **CA Cert (optional)**, and keep **Reject Unauthorized** checked. Beekeeper Studio then checks the server certificate against this CA, but it does not check that the certificate matches the host name. For a {{{ .essential }}} instance that uses the endpoint exclusive model, click **CA cert** in the TiDB Cloud connection dialog to download its CA certificate, and select that file instead.

7. Click **Test** to validate the connection to your target {{{ .starter }}} or Essential instance.

8. If the connection test succeeds, click **Connect** to save the connection and start using it.

</div>
<div label="{{{ .premium }}}">

1. Navigate to the [**My TiDB**](https://tidbcloud.com/tidbs) page, and then click the name of your target {{{ .premium }}} instance to go to its overview page.

2. In the left navigation pane, click **Settings** > **Networking**.

3. On the **Networking** page, click **Enable** for **Public Endpoint**, and then click **Add IP Address**.

Ensure that your client IP address is added to the access list.

4. In the left navigation pane, click **Overview** to return to the instance overview page.

5. Click **Connect** in the upper-right corner. A connection dialog is displayed.

6. In the connection dialog, select **Public** from the **Connection Type** drop-down list.

- If a message indicates that the public endpoint is still being enabled, wait until the process completes.
- If you have not set a password yet, click **Set Root Password** in the dialog.
- In addition to the **Public** connection type, {{{ .premium }}} supports **Private Endpoint** connections. For more information, see [Connect to {{{ .premium }}} via AWS PrivateLink](/tidb-cloud/premium/connect-to-premium-via-aws-private-endpoint.md).

7. Launch Beekeeper Studio. On the connections screen, click **New Connection**, select **TiDB** from the **Connection Type** list, and fill in the connection form: copy and paste the **Host**, **Port**, and **Username** from the connection dialog, and enter the password of the {{{ .premium }}} instance.

With only **Enable SSL** turned on, Beekeeper Studio encrypts the connection but does not verify the server's certificate. To check the certificate against a CA, click the arrow next to **Enable SSL** to expand the section, click **CA cert** in the TiDB Cloud connection dialog to download the certificate, select the downloaded file in **CA Cert (optional)**, and make sure **Reject Unauthorized** is checked. Beekeeper Studio then checks the server certificate against this CA, but it does not check that the certificate matches the host name.

8. Click **Test** to validate the connection to the {{{ .premium }}} instance.

9. If the connection test succeeds, click **Connect** to save the connection and start using it.

</div>
<div label="TiDB Cloud Dedicated">

1. Navigate to the [**My TiDB**](https://tidbcloud.com/tidbs) page, and then click the name of your target TiDB Cloud Dedicated cluster to go to its overview page.

2. Click **Connect** in the upper-right corner. A connection dialog is displayed.

3. In the connection dialog, select **Public** from the **Connection Type** drop-down list.

If you have not configured the IP access list, click **Configure IP Access List** or follow the steps in [Configure an IP Access List](https://docs.pingcap.com/tidbcloud/configure-ip-access-list) to configure it before your first connection.

In addition to the **Public** connection type, TiDB Cloud Dedicated supports **Private Endpoint** and **VPC Peering** connection types. For more information, see [Connect to Your TiDB Cloud Dedicated Cluster](https://docs.pingcap.com/tidbcloud/connect-to-tidb-cluster).

4. Launch Beekeeper Studio. On the connections screen, click **New Connection**, select **TiDB** from the **Connection Type** list, and fill in the connection form: copy and paste the **Host**, **Port**, and **Username** from the TiDB Cloud connection dialog, and enter the password of the TiDB Cloud Dedicated cluster.

![Beekeeper Studio: configure a TiDB connection](/media/develop/beekeeper-studio-connection-settings.png)

5. Turn on the **Enable SSL** toggle. With only **Enable SSL** turned on, Beekeeper Studio encrypts the connection but does not verify the server's certificate. To check the certificate against the CA for your cluster, click the arrow next to **Enable SSL** to expand the section, click **CA cert** in the TiDB Cloud connection dialog to download the certificate, select the downloaded file in **CA Cert (optional)**, and make sure **Reject Unauthorized** is checked. Beekeeper Studio then checks the server certificate against this CA, but it does not check that the certificate matches the host name.

6. Click **Test** to validate the connection to the TiDB Cloud Dedicated cluster.

7. If the connection test succeeds, click **Connect** to save the connection and start using it.

</div>
<div label="TiDB Self-Managed" value="tidb">

1. Launch Beekeeper Studio. On the connections screen, click **New Connection**, select **TiDB** from the **Connection Type** list, and configure the following connection parameters:

- **Host**: the IP address or domain name of your TiDB Self-Managed cluster.
- **Port**: the port number of your TiDB Self-Managed cluster.
- **User**: the username to use to connect to your TiDB Self-Managed cluster.
- **Password**: the password of the username.

![Beekeeper Studio: configure connection settings for TiDB Self-Managed](/media/develop/beekeeper-studio-connection-settings-self-hosted.png)

2. Click **Test** to validate the connection to the TiDB Self-Managed cluster.

3. If the connection test succeeds, click **Connect** to save the connection and start using it.

</div>
</SimpleTab>

## Next steps

- Learn more about using Beekeeper Studio in [the Beekeeper Studio documentation](https://docs.beekeeperstudio.io/).
- Learn the best practices for TiDB application development with the chapters in the [Developer guide](https://docs.pingcap.com/developer/), such as [Insert data](/develop/dev-guide-insert-data.md), [Update data](/develop/dev-guide-update-data.md), [Delete data](/develop/dev-guide-delete-data.md), [Single table reading](/develop/dev-guide-get-data-from-single-table.md), [Transactions](/develop/dev-guide-transaction-overview.md), and [SQL performance optimization](/develop/dev-guide-optimize-sql-overview.md).
- Learn through the professional [TiDB developer courses](https://www.pingcap.com/education/) and earn [TiDB certifications](https://www.pingcap.com/education/certification/) after passing the exam.

## Need help?

- Ask the community on [Discord](https://discord.gg/DQZ2dy3cuc?utm_source=doc) or [Slack](https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-docs).
- [Submit a support ticket for TiDB Cloud](https://tidb.support.pingcap.com/servicedesk/customer/portals)
- [Submit a support ticket for TiDB Self-Managed](/support.md)
2 changes: 1 addition & 1 deletion develop/dev-guide-third-party-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you encounter problems when connecting to TiDB using the tools listed in this

| GUI | Latest tested version | Support level | Tutorial |
|-----------------------------------------------------------|-----------------------|---------------|--------------------------------------------------------------------------------------|
| [Beekeeper Studio](https://www.beekeeperstudio.io/) | 4.3.0 | Full | N/A |
| [Beekeeper Studio](https://www.beekeeperstudio.io/) | 6.3.3 | Full | [Connect to TiDB with Beekeeper Studio](/develop/dev-guide-gui-beekeeper-studio.md) |
| [JetBrains DataGrip](https://www.jetbrains.com/datagrip/) | 2023.2.1 | Full | [Connect to TiDB with JetBrains DataGrip](/develop/dev-guide-gui-datagrip.md) |
| [DBeaver](https://dbeaver.io/) | 23.0.3 | Full | [Connect to TiDB with DBeaver](/develop/dev-guide-gui-dbeaver.md) |
| [Visual Studio Code](https://code.visualstudio.com/) | 1.72.0 | Full | [Connect to TiDB with Visual Studio Code](/develop/dev-guide-gui-vscode-sqltools.md) |
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading