Repository navigation
Add Beekeeper Studio Community Edition walkthrough #23743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hankhoffmeier
wants to merge
15
commits into
pingcap:master
Choose a base branch
from
hankhoffmeier:add-beekeeper-studio-guide
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+149
−2
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
384be15
Add Beekeeper Studio TiDB walkthrough
hankhoffmeier 1ab6024
Add files via upload
hankhoffmeier 5733d66
Added link resource to Beekeeper walkthrough
hankhoffmeier e58a173
Updated a couple of steps on the instructions.
hankhoffmeier 473f938
Updates for TLS
hankhoffmeier ae57140
Last update
hankhoffmeier 8ab1dcc
Require certificate verification for CA cert connections
hankhoffmeier 0a5820f
Require Reject Unauthorized for CA cert verification
hankhoffmeier 7ce6bfe
Add Beekeeper Studio guide to TOC-develop.md
hankhoffmeier 3d2deb8
Remove spaced em dash flagged by vale
hankhoffmeier 97ba2f4
Update develop/dev-guide-gui-beekeeper-studio.md
hankhoffmeier 30018f7
Apply review suggestions
hankhoffmeier cebb70f
Clarify CA certificate verification wording
hankhoffmeier 9b19989
Apply suggestion from @seominjea1942
hankhoffmeier 4093690
Use example user prefix in screenshot
hankhoffmeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,146 @@ | ||
| --- | ||
| title: Connect to TiDB with Beekeeper Studio | ||
| summary: Learn how to connect to TiDB using Beekeeper Studio. | ||
| aliases: ['/tidb/stable/dev-guide-gui-beekeeper-studio/','/tidb/dev/dev-guide-gui-beekeeper-studio/','/tidbcloud/dev-guide-gui-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"> | ||
|
|
||
| 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`. | ||
| - **Branch** is set to `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 }}}, 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`. | ||
|
|
||
|  | ||
|
|
||
| 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 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 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. | ||
|
|
||
|  | ||
|
|
||
| 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. | ||
|
|
||
|  | ||
|
|
||
| 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 usage of Beekeeper Studio from [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) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.