← Back to Pull requests

Add a connection tutorial for LibreDB Studio #23659

Closed
kaya-abdullah closed this pull request without merging on Oct 28, 2026 11:49 UTC
View on GitHub
kaya-abdullah kaya-abdullah commented on Aug 28, 2026 20:14 UTC
Author

First-time contributors' checklist

  • I've signed the Contributor License Agreement, which is required for the repository owners to accept my contribution.
  • What is changed, added or deleted? (Required)

    Adds a connection tutorial for LibreDB Studio, following on from #23658 which added it to the GUI table with the Tutorial column left as N/A. This updates that cell to point to the new page, matching the pattern DataGrip, DBeaver, VS Code and Navicat already have.

    LibreDB Studio (https://libredb.org) is an open-source, web-based SQL IDE that connects to TiDB over the MySQL protocol. The tutorial was written and verified against a local TiDB Self-Managed instance (pingcap/tidb:v8.5.0, --store=unistore): created a connection, ran Test Connection, then created a table, inserted rows and queried them back. Screenshots are from that session.

    The tutorial only covers TiDB Self-Managed. I don't have a TiDB Cloud account to verify the Starter/Essential/Premium/Dedicated connection dialogs, so I left those out rather than guess at them.

    Changed/added files:

  • develop/dev-guide-third-party-support.md: Tutorial cell for the LibreDB Studio row updated from N/A to the new page.

  • TOC-develop.md: one entry added under CLI & GUI Tools.

  • develop/dev-guide-gui-libredb-studio.md: new tutorial page.

  • media/develop/libredb-studio-*.png: four screenshots referenced by the tutorial.
  • Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)

  • v9.0 (TiDB 9.0 versions)

  • v8.5 (TiDB 8.5 versions)

  • v8.1 (TiDB 8.1 versions)

  • v7.5 (TiDB 7.5 versions)

  • v7.1 (TiDB 7.1 versions)

  • v6.5 (TiDB 6.5 versions)
  • What is the related PR or file link(s)?

  • Other reference link(s): #23658, https://github.com/libredb/libredb-studio
  • AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.
  • Do your changes match any of the following descriptions?

  • Delete files

  • Change aliases

  • Need modification after applied to another branch

  • Might cause conflicts after applied to another branch
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

  • New Documentation

  • - Added a guide for connecting to TiDB using LibreDB Studio, including setup prerequisites, connection steps, testing, and SSL guidance for TiDB Cloud.
    - Added LibreDB Studio to the supported third-party GUI tools list with full support for version 0.13.4.
    - Added the new guide to the documentation table of contents.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 86 lines (+86 / -0) across 7 files Reviewer: kaya-abdullah Review duration: 87335m
    All Vouch review confidence checks passed
    Residual risk 0.08 = Change Risk (0.53) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.53 · 86 lines diff across 7 files
    0.53
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.75 · 5 substantive comment(s)
    0.75
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    84%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.267
    Self Review self_review
    0.140
    Real PR Conversation Timeline
    27 items
    ti-chi-bot[bot] ti-chi-bot[bot] commented on Aug 28, 2026 20:14 UTC
    Bot

    Hi @kaya-abdullah. Thanks for your PR.

    I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

    Once the patch is verified, the new status will be reflected by the ok-to-test label.

    I understand the commands that are listed here.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
    </details>

    ti-chi-bot[bot] ti-chi-bot[bot] commented on Aug 28, 2026 20:14 UTC
    Bot

    [APPROVALNOTIFIER] This PR is NOT APPROVED

    This pull-request has been approved by:
    Once this PR has been reviewed and has the lgtm label, please assign kissmydb for approval. For more information see the Code Review Process.
    Please ensure that each of them provides their approval before proceeding.

    The full list of commands accepted by this bot can be found here.

    <details open>
    Needs approval from an approver in each of these files:

  • OWNERS
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":["kissmydb"]} -->

    coderabbitai[bot] coderabbitai[bot] commented on Aug 28, 2026 20:15 UTC
    Bot

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- review_stack_entry_start -->

    ![Review Change Stack](https://app.coderabbit.ai/change-stack/pingcap/docs/pull/23659)

    <!-- review_stack_entry_end -->
    <!-- This is an auto-generated comment: review paused by coderabbit.ai -->

    [!NOTE]

    ## Reviews paused

    > It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

    > Use the following commands to manage reviews:

    - @coderabbitai resume to resume automatic reviews.

    - @coderabbitai review to trigger a single review.

    > Use the checkboxes below for quick actions:

    - [ ] <!-- {"checkboxId":"7f6cc2e2-2e4e-497a-8c31-c9e4573e93d1"} --> ▶️ Resume reviews

    - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review

    <!-- end of auto-generated comment: review paused by coderabbit.ai -->
    <!-- walkthrough_start -->

    <details>
    <summary>📝 Walkthrough</summary>

    Walkthrough

    Adds a LibreDB Studio connection guide for TiDB. Links the guide from the development table of contents and the third-party GUI support table.

    Changes

    LibreDB Studio documentation

    |Layer / File(s)|Summary|
    |---|---|
    |Document LibreDB Studio support and connection flow <br> develop/dev-guide-gui-libredb-studio.md, TOC-develop.md, develop/dev-guide-third-party-support.md|Adds prerequisites, connection steps, TiDB-specific notes, navigation, and a support entry for LibreDB Studio version 0.13.4.|

    Estimated code review effort: 1 (Trivial) | ~5 minutes

    </details>

    <!-- walkthrough_end -->
    <!-- final_review_risk_start -->
    Merge Risk: _🟡 Moderate_ · up to b04b1

    The tutorial currently omits required TLS guidance for secure Self-Managed clusters, may not complete its multi-statement verification flow as written, and claims broader support than the demonstrated scope. Merge is not ready until these bounded documentation issues are fixed or explicitly accepted.
    <!-- final_review_risk_end -->
    <!-- pre_merge_checks_walkthrough_start -->

    <details>
    <summary>🚥 Pre-merge checks | ✅ 5</summary>

    <details>
    <summary>✅ Passed checks (5 passed)</summary>

    | Check name | Status | Explanation |
    | :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Title check | ✅ Passed | The title clearly and concisely describes the main change: adding a LibreDB Studio connection tutorial. |
    | Description check | ✅ Passed | The description covers the required sections, explains the changes, identifies affected TiDB versions, provides references, records AI involvement, and addresses applicable change categories. |
    | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… |
    | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
    | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |

    </details>

    <details>
    <summary>Full details: Docstring Coverage</summary>

    Explanation

    No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

    </details>

    </details>

    <!-- pre_merge_checks_walkthrough_end -->
    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary>✨ Finishing Touches</summary>

    <details>
    <summary>🧪 Generate unit tests (beta)</summary>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests
  • </details>

    </details>

    <!-- finishing_touch_checkbox_end -->
    <!-- tips_start -->

    ---

    Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

    <details>
    <summary>❤️ Share</summary>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </details>

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:20 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,72 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed. LibreDB Studio connects to TiDB over the same MySQL protocol it uses for MySQL itself, so a TiDB Cloud connection uses the same fields with SSL turned on in the connection dialog; this tutorial does not walk through the TiDB Cloud connection dialog.

    _🔒 Security & Privacy_ | _🟠 Major_ | _⚡ Quick win_

    <details>
    <summary>🔎 Supported by static analysis</summary>

    🏁 Script executed:

    #!/bin/bash
    set -eu
    printf '%s\n' '--- repository conventions ---'
    for f in /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c/*/*.md; do
      case "$f" in
        */coding-guidelines.md|*/documentation*.md|*/markdown*.md) printf '\n--- %s ---\n' "$f"; head -120 "$f";;
      esac
    done
    printf '%s\n' '--- learnings ---'
    for f in /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c/learnings/*.md; do
      [ -e "$f" ] || continue
      printf '\n--- %s ---\n' "$f"
      head -160 "$f"
    done
    printf '%s\n' '--- target file ---'
    cat -n develop/dev-guide-gui-libredb-studio.md | sed -n '1,45p'
    printf '%s\n' '--- nearby TiDB Cloud terminology ---'
    rg -n -C 2 'TiDB Cloud|Starter|Essential|Dedicated|username prefix|CA-certificate|server verification|SSL turned on' develop resources docs 2>/dev/null | head -240 || true
    

    Repository: pingcap/docs

    Length of output: 25562

    ---

    🌐 Web query:

    site:docs.pingcap.com/tidbcloud Starter Essential username prefix Dedicated CA certificate server verification TLS connection requirements

    💡 Result:

    In the context of TiDB Cloud Starter and TiDB Cloud Essential instances, the following requirements apply to TLS connections, username prefixes, and server verification: Username Prefix For TiDB Cloud Starter instances and TiDB Cloud Essential instances created before July 1, 2026, you must include a unique, auto-generated prefix in your database username and wrap the username in quotation marks (e.g., 'prefix.username') [1][2][3]. You can obtain this prefix from the connection string provided in the TiDB Cloud UI [3][4]. For TiDB Cloud Essential instances created on or after July 1, 2026, an endpoint exclusive model is used, which eliminates the need to include this account prefix in the username [2]. TLS Connection and Server Verification TiDB Cloud Starter and Essential instances mandate TLS connections and prohibit non-SSL/TLS traffic [1][5][6]. The following requirements apply to server verification and certificates: - Certificate Authority (CA): TiDB Cloud uses certificates issued by Let's Encrypt [1][5]. - One-Way TLS: The service supports one-way TLS authentication, meaning the client verifies the TiDB Cloud server's certificate, but the server does not validate the client [1][5]. - Server Verification: You can connect without manually downloading a server-side digital certificate if your client uses the system's default root CA store [1][5]. If your environment does not use the system's default root CA store, you must configure the CA root path for your driver or application [1][5]. - Downloading CA Certificate: You can download the required CA certificate directly from the TiDB Cloud console to ensure secure connections [2]. - Certificate Rotation: Certificates are automatically rotated upon expiration without requiring manual intervention [1][5]. When connecting via CLI tools (such as the MySQL CLI), you should specify the CA certificate path and enforce identity verification using flags like --ssl-mode=VERIFY_IDENTITY and --ssl-ca=<CA_root_path> [3][7].

    Citations:

  • 1: https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-clusters/?plan=starter

  • 2: https://docs.pingcap.com/tidbcloud/connect-via-standard-connection-serverless/

  • 3: https://docs.pingcap.com/tidbcloud/select-cluster-tier/

  • 4: https://docs.pingcap.com/tidbcloud/tidb-cloud-faq/

  • 5: https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-clusters/

  • 6: https://docs.pingcap.com/tidbcloud/connect-to-tidb-cluster-serverless/?plan=essential

  • 7: https://docs.pingcap.com/tidbcloud/import-with-mysql-cli-serverless/?plan=essential
  • ---

    🌐 Web query:

    site:docs.pingcap.com/tidbcloud/tidb-cloud-tls-connect-to-dedicated LibreDB Studio Dedicated CA certificate server verification host username connection requirements

    💡 Result:

    There is no publicly available documentation or evidence regarding a software product named LibreDB Studio. The search results provided are exclusively related to establishing TLS connections for TiDB Cloud Dedicated clusters [1]. It is possible that the query contains a naming error or refers to a tool that is not publicly documented. If you are attempting to configure a secure connection for a database system, please verify the name of your specific database management tool. If you are working with TiDB Cloud Dedicated, the standard requirements for a secure connection involve downloading the CA certificate provided by the cluster, using that certificate to verify the server identity, and providing the appropriate connection credentials, such as host, port, username, and password [1]. For tools like the MySQL CLI or MyCLI, this typically requires flags such as --ssl-ca and --ssl-verify-server-cert [1].

    Citations:

  • 1: https://docs.pingcap.com/tidbcloud/tidb-cloud-tls-connect-to-dedicated/
  • ---

    </details>

    Remove the broad TiDB Cloud connection claim.

    TiDB Cloud requirements vary by plan and cluster creation date. Dedicated connections require CA-certificate and server-verification settings, so “SSL turned on” is not sufficient guidance.

    <details>
    <summary>Suggested replacement</summary>

    > This tutorial covers TiDB Self-Managed. This tutorial does not cover TiDB Cloud connections.
    

    </details>

    <!-- fingerprinting:phantom:triton:caracal -->

    <!-- cr-indicator-types:potential_issue -->

    <!-- cr-comment:v1:2b1c0b451619b8d5baa81265 -->

    _Sources: Path instructions, MCP tools_

    <!-- This is an auto-generated comment by CodeRabbit -->

    ✅ Addressed in commit 4806f60

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:20 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,72 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed. LibreDB Studio connects to TiDB over the same MySQL protocol it uses for MySQL itself, so a TiDB Cloud connection uses the same fields with SSL turned on in the connection dialog; this tutorial does not walk through the TiDB Cloud connection dialog.
    +
    +## Prerequisites
    +
    +To complete this tutorial, you need:
    +
    +- LibreDB Studio, started with `npx @libredb/studio` or the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).

    _🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_

    <details>
    <summary>🔎 Supported by static analysis</summary>

    🏁 Script executed:

    printf '%s\n' '--- applicable conventions ---'
    find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -maxdepth 2 -type f -name '*.md' -print
    printf '%s\n' '--- target document ---'
    nl -ba develop/dev-guide-gui-libredb-studio.md | sed -n '1,80p'
    

    Repository: pingcap/docs

    Length of output: 506

    ---

    🏁 Script executed:

    printf '%s\n' '--- repository conventions ---'
    cat /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c/conventions/repo-wide.md
    printf '%s\n' '--- target document ---'
    sed -n '1,100p' develop/dev-guide-gui-libredb-studio.md
    

    Repository: pingcap/docs

    Length of output: 8113

    ---

    🏁 Script executed:

    printf '%s\n' '--- LibreDB Studio version references ---'
    rg -n -i --glob '*.md' --glob '*.mdx' 'LibreDB Studio|libredb/studio|0\.13\.4' . | head -120
    

    Repository: pingcap/docs

    Length of output: 3708

    ---

    🌐 Web query:

    npm npx documentation package specifier without version resolves latest package

    💡 Result:

    When you use npx (or npm exec) with a package name that does not include a version specifier, the behavior depends on whether the package is already present in your local project [1][2]. 1. Local Project Resolution: If the package is present in your local project (e.g., in node_modules), npx will use the version already installed in your project [1][2]. 2. Remote Resolution: If the package is not found locally, npx will attempt to install and execute it. In this scenario, when no version is specified (e.g., npx package-name), npm effectively resolves it as if you had requested the latest version, subject to compatibility constraints [3]. Specifically, since npm v10.8.2, npx resolves the latest version that is compatible with your current Node.js runtime [3]. It prioritizes versions whose engines field in package.json matches your Node version [3]. If an older version has no engine constraints, npm may consider it compatible [3]. It is important to distinguish this from providing an explicit version specifier (e.g., package-name@latest or package-name@1.0.0). When a specifier is provided, npm treats it as a distinct request for that specific version or tag, which often forces a fresh, temporary installation even if the resolved version is already cached or present locally [4][5].

    Citations:

  • 1: https://docs.npmjs.com/cli/v11/commands/npx/

  • 2: https://docs.npmjs.com/cli/v10/commands/npx/

  • 3: https://developer.microsoft.com/blog/your-agent-just-scaffolded-a-project-from-2020/

  • 4: https://github.com/npm/npx/blob/latest/README.md

  • 5: GitHub issue 6450 in npm/cli (link omitted to avoid creating a cross-reference)
  • ---

    </details>

    Pin the LibreDB Studio version used by the walkthrough.

    npx @libredb/studio` can use a local version or resolve a remote compatible version, while develop/dev-guide-third-party-support.md lists 0.13.4 as the supported version. Pin @libredb/studio@0.13.4` if that is the tested release, or update the tested version and screenshots together.

    <!-- fingerprinting:phantom:triton:caracal -->

    <!-- cr-indicator-types:potential_issue -->

    <!-- cr-comment:v1:6dbe4f5465cbb884bdfaf9b1 -->

    _Sources: Path instructions, MCP tools_

    <!-- This is an auto-generated comment by CodeRabbit -->

    ✅ Addressed in commit b04b10e

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:20 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,72 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed. LibreDB Studio connects to TiDB over the same MySQL protocol it uses for MySQL itself, so a TiDB Cloud connection uses the same fields with SSL turned on in the connection dialog; this tutorial does not walk through the TiDB Cloud connection dialog.
    +
    +## Prerequisites
    +
    +To complete this tutorial, you need:
    +
    +- LibreDB Studio, started with `npx @libredb/studio` or the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).
    +- A TiDB Self-Managed cluster.
    +
    +**If you don't have a TiDB cluster, you can deploy one as follows:**
    +
    +- [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
    +
    +1. Open LibreDB Studio in your browser and sign in.
    +
    +2. Click the **+** button next to the LibreDB Studio logo in the top-left corner. This opens the **New Connection** dialog.
    +
    +    ![LibreDB Studio: the New Connection dialog](/media/develop/libredb-studio-new-connection.png)
    +
    +3. Select **MySQL** as the database type. TiDB does not have its own entry in this list because LibreDB Studio talks to it over the same driver it uses for MySQL; once MySQL is selected, a note under the type grid lists the wire-compatible engines that driver has been verified against, including the exact TiDB build LibreDB Studio was tested with.
    +
    +    ![LibreDB Studio: the MySQL driver's compatibility note lists TiDB](/media/develop/libredb-studio-mysql-compatibility-note.png)
    +
    +4. Configure the following connection parameters:
    +
    +    - **Connection Name**: give this connection a meaningful name, such as `TiDB`.
    +    - **Host & Instance**: enter the host and port of your TiDB cluster. The default TiDB port is `4000`.
    +    - **Username**: enter the username to connect to your TiDB cluster.
    +    - **Password**: enter the password for that username, if one is set.
    +    - **Database Name**: enter the name of an existing database on the cluster, such as `test`.
    +
    +    The following figure shows an example of the connection parameters:
    +
    +    ![LibreDB Studio: connection settings for a TiDB Self-Managed cluster](/media/develop/libredb-studio-connection-settings.png)
    +
    +5. Click **Test Connection** to validate the connection to your TiDB cluster.
    +
    +6. Click **Establish Connection** to save the connection and open it.
    +
    +    ![LibreDB Studio: connected to TiDB and running a query](/media/develop/libredb-studio-connected-query.png)

    _🎯 Functional Correctness_ | _🟠 Major_ | _🏗️ Heavy lift_

    Add the promised create, insert, and query steps.

    After the connection is established, the guide only shows a screenshot. It does not provide executable steps for creating a table, inserting rows, or querying data. The note on Lines 58-60 assumes those actions already occurred. Add the SQL statements, expected results, and any required screenshots before the next steps.

    As per path instructions, no exact replacement is included because the fix requires new tutorial steps and associated media.

    <!-- fingerprinting:phantom:triton:caracal -->

    <!-- cr-indicator-types:potential_issue -->

    <!-- cr-comment:v1:23a599bfca35fc15d04c6592 -->

    _Source: Path instructions_

    <!-- This is an auto-generated comment by CodeRabbit -->

    ✅ Addressed in commit 4806f60

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:20 UTC
    Code Review
    develop/dev-guide-third-party-support.md:1
    @@ -60,6 +60,7 @@ If you encounter problems when connecting to TiDB using the tools listed in this
     | [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) |
     | [Navicat](https://www.navicat.com)                        | 17.1.6                | Full          | [Connect to TiDB with Navicat](/develop/dev-guide-gui-navicat.md) |
    +| [LibreDB Studio](https://libredb.org)                     | 0.13.4                | Full          | [Connect to TiDB with LibreDB Studio](/develop/dev-guide-gui-libredb-studio.md) |

    _🎯 Functional Correctness_ | _🟠 Major_ | _⚡ Quick win_

    <details>
    <summary>🔎 Supported by static analysis</summary>

    🏁 Script executed:

    printf '%s\n' '--- applicable repository conventions ---'
    find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -path '*/\*.md' -print | sort
    printf '%s\n' '--- target diff ---'
    git diff -- develop/dev-guide-third-party-support.md
    printf '%s\n' '--- target context ---'
    sed -n '1,90p' develop/dev-guide-third-party-support.md
    printf '%s\n' '--- linked LibreDB guide ---'
    sed -n '1,220p' develop/dev-guide-gui-libredb-studio.md
    

    Repository: pingcap/docs

    Length of output: 12790

    ---

    🏁 Script executed:

    printf '%s\n' '--- repository state ---'
    git status --short
    git diff --stat
    printf '%s\n' '--- applicable convention files ---'
    find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -type f -name '*.md' -print | sort
    printf '%s\n' '--- convention excerpts ---'
    for f in $(find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -type f -name '*.md' -print | sort); do
      case "$f" in
        */coding-guidelines.md|*/documentation.md|*/learnings/*.md)
          echo "### $f"; head -80 "$f";;
      esac
    done
    printf '%s\n' '--- current commit and parent diff for the target ---'
    git show --no-ext-diff --format=fuller --stat HEAD
    git diff --no-ext-diff HEAD^ HEAD -- develop/dev-guide-third-party-support.md develop/dev-guide-gui-libredb-studio.md
    

    Repository: pingcap/docs

    Length of output: 9018

    ---

    </details>

    Change LibreDB Studio to Compatible unless broader testing is documented.

    Full requires compatibility with most functionality, newer versions, and periodic testing. The linked guide documents a connection workflow and mentions basic table and insert checks, but does not establish those requirements.

    <details>
    <summary>Suggested replacement</summary>

    | [LibreDB Studio](https://libredb.org)                     | 0.13.4                | Compatible   | [Connect to TiDB with LibreDB Studio](/develop/dev-guide-gui-libredb-studio.md) |
    

    </details>

    <!-- fingerprinting:phantom:triton:caracal -->

    <!-- cr-indicator-types:potential_issue -->

    <!-- cr-comment:v1:f3654c9b23e59fef6327576c -->

    _Source: Path instructions_

    <!-- This is an auto-generated reply by CodeRabbit -->

    coderabbitai[bot] coderabbitai[bot] commented on Aug 28, 2026 20:20 UTC
    Reviewer

    Actionable comments posted: 4

    ---

    <details>
    <summary>ℹ️ Review info</summary>

    <details>
    <summary>⚙️ Run configuration</summary>

    Configuration used: Path: .coderabbit.yaml

    Review profile: ASSERTIVE

    Plan: Pro Plus

    Run ID: 3d5867dd-96b0-46f7-a508-3e0bfaf2bad3

    </details>

    <details>
    <summary>📥 Commits</summary>

    Reviewing files that changed from the base of the PR and between 0d5953c13ffb8a3e521b5f647a12de3ee756b513 and 5df0aaa6efbe5f1101cd332122fd64d9c1ea1753.

    </details>

    <details>
    <summary>⛔ Files ignored due to path filters (4)</summary>

    media/develop/libredb-studio-connected-query.png is excluded by !/.png
    media/develop/libredb-studio-connection-settings.png is excluded by !/.png
    media/develop/libredb-studio-mysql-compatibility-note.png is excluded by !/.png
    media/develop/libredb-studio-new-connection.png is excluded by !/.png

    </details>

    <details>
    <summary>📒 Files selected for processing (3)</summary>

    TOC-develop.md
    develop/dev-guide-gui-libredb-studio.md

  • develop/dev-guide-third-party-support.md
  • </details>

    Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.

    </details>

    <!-- This is an auto-generated comment by CodeRabbit for review status -->

    kaya-abdullah kaya-abdullah commented on Aug 28, 2026 20:34 UTC
    Author

    @coderabbitai review

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:37 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,82 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed only. It was not tested against TiDB Cloud, so it does not include TiDB Cloud connection steps.
    +
    +## Prerequisites
    +
    +To complete this tutorial, you need:
    +
    +- LibreDB Studio, started with `npx @libredb/studio` or the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).
    +- A TiDB Self-Managed cluster.
    +
    +**If you don't have a TiDB cluster, you can deploy one as follows:**
    +
    +- [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
    +
    +1. Open LibreDB Studio in your browser and sign in.
    +
    +2. Click the **+** button next to the LibreDB Studio logo in the top-left corner. This opens the **New Connection** dialog.
    +
    +    ![LibreDB Studio: the New Connection dialog](/media/develop/libredb-studio-new-connection.png)
    +
    +3. Select **MySQL** as the database type. TiDB does not have its own entry in this list because LibreDB Studio talks to it over the same driver it uses for MySQL; once MySQL is selected, a note under the type grid lists the wire-compatible engines that driver has been verified against, including the exact TiDB build LibreDB Studio was tested with.
    +
    +    ![LibreDB Studio: the MySQL driver's compatibility note lists TiDB](/media/develop/libredb-studio-mysql-compatibility-note.png)
    +
    +4. Configure the following connection parameters:
    +
    +    - **Connection Name**: give this connection a meaningful name, such as `TiDB`.
    +    - **Host & Instance**: enter the host and port of your TiDB cluster. The default TiDB port is `4000`.
    +    - **Username**: enter the username to connect to your TiDB cluster.
    +    - **Password**: enter the password for that username, if one is set.
    +    - **Database Name**: enter the name of an existing database on the cluster, such as `test`.
    +
    +    The following figure shows an example of the connection parameters:
    +
    +    ![LibreDB Studio: connection settings for a TiDB Self-Managed cluster](/media/develop/libredb-studio-connection-settings.png)
    +
    +5. Click **Test Connection** to validate the connection to your TiDB cluster.
    +
    +6. Click **Establish Connection** to save the connection and open it.
    +
    +7. In the query editor, run a statement to confirm the connection works end to end, for example:
    +
    +    ```sql
    +    CREATE TABLE demo_users (id INT PRIMARY KEY, name VARCHAR(50));
    +    INSERT INTO demo_users VALUES (1, 'Ada'), (2, 'Grace');
    +    SELECT * FROM demo_users;
    +    ```
    +
    +    Click **RUN** (or press **Ctrl+Enter**) to execute it.

    _🎯 Functional Correctness_ | _🟠 Major_ | _⚡ Quick win_

    <details>
    <summary>🔎 Supported by static analysis</summary>

    🏁 Script executed:

    printf '%s\n' '--- applicable repository conventions ---'
    find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -path '*/\*.md' -print
    printf '%s\n' '--- target file and changed range ---'
    git diff -- develop/dev-guide-gui-libredb-studio.md
    printf '%s\n' '--- target context ---'
    cat -n develop/dev-guide-gui-libredb-studio.md | sed -n '1,90p'
    printf '%s\n' '--- scoped conventions and learnings ---'
    for f in /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c/*/*.md; do
      case "$f" in
        */learnings/*|*/\**/*) ;;
        *) printf '\n### %s\n' "$f"; cat "$f" ;;
      esac
    done
    for f in /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c/learnings/*.md; do
      [ -e "$f" ] || continue
      printf '\n### %s\n' "$f"
      cat "$f"
    done
    

    Repository: pingcap/docs

    Length of output: 10347

    ---

    🏁 Script executed:

    set -u
    repo='https://api.github.com/repos/libredb/libredb-studio'
    printf '%s\n' '--- tag resolution ---'
    curl -fsSL "$repo/git/ref/tags/v0.13.4" | jq '{ref, object}'
    printf '%s\n' '--- versioned QueryEditor candidates ---'
    for path in \
      src/components/QueryEditor.tsx \
      apps/studio/src/components/QueryEditor.tsx \
      packages/studio/src/components/QueryEditor.tsx
    do
      url="https://raw.githubusercontent.com/libredb/libredb-studio/v0.13.4/$path"
      status=$(curl -sS -o /tmp/query-editor.tsx -w '%{http_code}' "$url")
      printf '%s %s\n' "$status" "$path"
      if [ "$status" = 200 ]; then
        cat -n /tmp/query-editor.tsx
      fi
    done
    printf '%s\n' '--- package metadata for the exact published version ---'
    curl -fsSL 'https://registry.npmjs.org/@libredb%2fstudio/0.13.4' |
      jq '{name, version, dist: .dist, repository}'
    

    Repository: pingcap/docs

    Length of output: 1365

    ---

    🏁 Script executed:

    set -u
    repo='https://api.github.com/repos/libredb/libredb-studio'
    printf '%s\n' '--- available tags matching 0.13.4 ---'
    curl -fsSL "$repo/tags?per_page=100" |
      jq -r '.[] | select(.name|contains("0.13.4")) | [.name, .commit.sha] | `@tsv`'
    printf '%s\n' '--- published package file inventory ---'
    curl -fsSL 'https://unpkg.com/@libredb/studio@0.13.4/?meta' |
      jq -r '.files[].path' | grep -E '(QueryEditor|sourceMap|\\.map$|\\.js$)' | head -80
    printf '%s\n' '--- published package entry metadata ---'
    curl -fsSL 'https://unpkg.com/@libredb/studio@0.13.4/package.json' |
      jq '{name, version, main, module, exports, files}'
    

    Repository: pingcap/docs

    Length of output: 1989

    ---

    🏁 Script executed:

    set -u
    commit='62d7ecca754f78386d1cc17a202e275a52754fbe'
    api="https://api.github.com/repos/libredb/libredb-studio"
    printf '%s\n' '--- resolved tag commit ---'
    curl -fsSL "$api/commits/$commit" | jq -r '.sha'
    printf '%s\n' '--- files related to query execution at the exact tag ---'
    curl -fsSL "$api/git/trees/$commit?recursive=1" |
      jq -r '.tree[] | select(.path|test("QueryEditor|query.editor|query-editor|\\.map$")) | .path' |
      head -100
    printf '%s\n' '--- exact-tag source candidates ---'
    for path in \
      src/components/QueryEditor.tsx \
      src/components/QueryEditor/index.tsx \
      apps/studio/src/components/QueryEditor.tsx
    do
      status=$(curl -sS -o /tmp/query-editor.tsx -w '%{http_code}' "https://raw.githubusercontent.com/libredb/libredb-studio/0.13.4/$path")
      printf '%s %s\n' "$status" "$path"
      if [ "$status" = 200 ]; then cat -n /tmp/query-editor.tsx; fi
    done
    

    Repository: pingcap/docs

    Length of output: 32218

    ---

    🏁 Script executed:

    commit='62d7ecca754f78386d1cc17a202e275a52754fbe'
    api="https://api.github.com/repos/libredb/libredb-studio"
    printf '%s\n' '--- exact-tag files likely to consume execute-query ---'
    curl -fsSL "$api/git/trees/$commit?recursive=1" |
      jq -r '.tree[] | select(.type=="blob" and (.path|test("\\.(tsx|ts|js|jsx)$"))) | .path' |
      grep -Ei '(editor|workspace|query|connection|page)' | head -120
    printf '%s\n' '--- exact-tag references to execute-query ---'
    curl -fsSL "$api/git/trees/$commit?recursive=1" |
      jq -r '.tree[] | select(.type=="blob" and (.path|test("\\.(tsx|ts|js|jsx)$"))) | .path' |
      while read -r path; do
        body=$(curl -fsSL "https://raw.githubusercontent.com/libredb/libredb-studio/$commit/$path" 2>/dev/null) || continue
        if printf '%s' "$body" | grep -q 'execute-query'; then
          printf '\n### %s\n' "$path"
          printf '%s' "$body" | grep -n -C 8 'execute-query'
        fi
      done
    

    Repository: pingcap/docs

    Length of output: 131

    ---

    </details>

    Run each SQL statement separately.

    With no selection, LibreDB Studio 0.13.4 executes only the statement under the cursor when you press Ctrl+Enter or Cmd+Enter. One execution does not run all three statements.

    <details>
    <summary>Suggested replacement</summary>

    7. In the query editor, run each statement separately. Place the cursor in a statement before you press **Ctrl+Enter** (or **Cmd+Enter** on macOS).
    
        
    sql
    CREATE TABLE demo_users (id INT PRIMARY KEY, name VARCHAR(50));
    
        
    sql
    INSERT INTO demo_users VALUES (1, 'Ada'), (2, 'Grace');
    
        
    sql
    SELECT * FROM demo_users;

    </details>

    <!-- fingerprinting:phantom:triton:caracal -->

    <!-- cr-indicator-types:potential_issue -->

    <!-- cr-comment:v1:c4ff9224e7edd16e18e87a47 -->

    _Sources: Path instructions, MCP tools_

    <!-- This is an auto-generated reply by CodeRabbit -->

    coderabbitai[bot] coderabbitai[bot] commented on Aug 28, 2026 20:37 UTC
    Reviewer

    Actionable comments posted: 1

    ---

    <details>
    <summary>ℹ️ Review info</summary>

    <details>
    <summary>⚙️ Run configuration</summary>

    Configuration used: Path: .coderabbit.yaml

    Review profile: ASSERTIVE

    Plan: Pro Plus

    Run ID: 5cd3e29d-9074-48a7-8ecf-701b054560e0

    </details>

    <details>
    <summary>📥 Commits</summary>

    Reviewing files that changed from the base of the PR and between 5df0aaa6efbe5f1101cd332122fd64d9c1ea1753 and 4806f605b4689a4f6161e2c6309848acf3306975.

    </details>

    <details>
    <summary>📒 Files selected for processing (1)</summary>

  • develop/dev-guide-gui-libredb-studio.md
  • </details>

    Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review.

    </details>

    <!-- This is an auto-generated comment by CodeRabbit for review status -->

    coderabbitai[bot] coderabbitai[bot] commented on Aug 28, 2026 20:39 UTC
    Bot

    <!-- This is an auto-generated reply by CodeRabbit -->
    <!-- CodeRabbit review command invocation: v2:d265881a56bdbc48c9610a862c081e8f3cb0bc43630099fe9391b2ec162e4a85 -->
    <details>
    <summary>⚠️ Action not completed</summary>

    Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

    Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

    </details>

    kaya-abdullah kaya-abdullah commented on code on Aug 28, 2026 20:43 UTC
    Code Review
    develop/dev-guide-third-party-support.md:1
    @@ -60,6 +60,7 @@ If you encounter problems when connecting to TiDB using the tools listed in this
     | [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) |
     | [Navicat](https://www.navicat.com)                        | 17.1.6                | Full          | [Connect to TiDB with Navicat](/develop/dev-guide-gui-navicat.md) |
    +| [LibreDB Studio](https://libredb.org)                     | 0.13.4                | Full          | [Connect to TiDB with LibreDB Studio](/develop/dev-guide-gui-libredb-studio.md) |

    LibreDB Studio's Full rating here reflects a broader compatibility measurement than what this walkthrough shows: the TiDB section of docs/providers/mysql.md in the LibreDB Studio repo (https://github.com/libredb/libredb-studio/blob/main/docs/providers/mysql.md) independently tests all 15 provider surfaces against TiDB - schema browsing, query editing, EXPLAIN, health/monitoring, storage stats, permissions, and more - and documents the caveats found: background statistics lag on freshly loaded tables, EXPLAIN FORMAT='json' being rejected, an empty slow-query panel, and a phantom InnoDB storage entry. This tutorial only demonstrates the connect-and-query path; the Full rating is based on that fuller measurement, not just what's shown here.

    kaya-abdullah kaya-abdullah commented on code on Aug 28, 2026 20:44 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,82 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed only. It was not tested against TiDB Cloud, so it does not include TiDB Cloud connection steps.
    +
    +## Prerequisites
    +
    +To complete this tutorial, you need:
    +
    +- LibreDB Studio, started with `npx @libredb/studio` or the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).
    +- A TiDB Self-Managed cluster.
    +
    +**If you don't have a TiDB cluster, you can deploy one as follows:**
    +
    +- [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
    +
    +1. Open LibreDB Studio in your browser and sign in.
    +
    +2. Click the **+** button next to the LibreDB Studio logo in the top-left corner. This opens the **New Connection** dialog.
    +
    +    ![LibreDB Studio: the New Connection dialog](/media/develop/libredb-studio-new-connection.png)
    +
    +3. Select **MySQL** as the database type. TiDB does not have its own entry in this list because LibreDB Studio talks to it over the same driver it uses for MySQL; once MySQL is selected, a note under the type grid lists the wire-compatible engines that driver has been verified against, including the exact TiDB build LibreDB Studio was tested with.
    +
    +    ![LibreDB Studio: the MySQL driver's compatibility note lists TiDB](/media/develop/libredb-studio-mysql-compatibility-note.png)
    +
    +4. Configure the following connection parameters:
    +
    +    - **Connection Name**: give this connection a meaningful name, such as `TiDB`.
    +    - **Host & Instance**: enter the host and port of your TiDB cluster. The default TiDB port is `4000`.
    +    - **Username**: enter the username to connect to your TiDB cluster.
    +    - **Password**: enter the password for that username, if one is set.
    +    - **Database Name**: enter the name of an existing database on the cluster, such as `test`.
    +
    +    The following figure shows an example of the connection parameters:
    +
    +    ![LibreDB Studio: connection settings for a TiDB Self-Managed cluster](/media/develop/libredb-studio-connection-settings.png)
    +
    +5. Click **Test Connection** to validate the connection to your TiDB cluster.
    +
    +6. Click **Establish Connection** to save the connection and open it.
    +
    +7. In the query editor, run a statement to confirm the connection works end to end, for example:
    +
    +    ```sql
    +    CREATE TABLE demo_users (id INT PRIMARY KEY, name VARCHAR(50));
    +    INSERT INTO demo_users VALUES (1, 'Ada'), (2, 'Grace');
    +    SELECT * FROM demo_users;
    +    ```
    +
    +    Click **RUN** (or press **Ctrl+Enter**) to execute it.

    This was tested directly: all three statements were pasted into the editor exactly as shown and executed with a single Ctrl+Enter, and TiDB confirmed with a '3 statements executed - All 3 statements completed in 30ms' toast. The returned result set contained both inserted rows, which would not have been possible if only the SELECT under the cursor had run, since the table would not have existed yet. Keeping the single-execution instruction as tested.

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:51 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,82 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed only. It was not tested against TiDB Cloud, so it does not include TiDB Cloud connection steps.
    +
    +## Prerequisites
    +
    +To complete this tutorial, you need:
    +
    +- LibreDB Studio, started with `npx @libredb/studio@0.13.4` or the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).

    _🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_

    <details>
    <summary>🔎 Supported by static analysis</summary>

    🏁 Script executed:

    #!/bin/bash
    set -euo pipefail
    npm view `@libredb/studio`@0.13.4 engines --json
    major="$(node -p 'process.versions.node.split(".")[0]')"
    test "$major" -ge 24
    

    Repository: pingcap/docs

    Length of output: 487

    ---

    </details>

    Document the required Node.js version.

    @libredb/studio@0.13.4 declares engines.node as >=24.0.0. Add this prerequisite to the documented command.

    <details>
    <summary>Suggested replacement</summary>

    - LibreDB Studio 0.13.4, started with `npx `@libredb/studio`@0.13.4` on Node.js 24+ or with the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).
    

    </details>

    <!-- fingerprinting:phantom:triton:caracal -->

    <!-- cr-indicator-types:potential_issue -->

    <!-- cr-comment:v1:7fb23bafcd9de1aeea93b06f -->

    _Sources: Path instructions, MCP tools_

    <!-- This is an auto-generated comment by CodeRabbit -->

    ✅ Addressed in commit 8752444

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:51 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,82 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed only. It was not tested against TiDB Cloud, so it does not include TiDB Cloud connection steps.
    +
    +## Prerequisites
    +
    +To complete this tutorial, you need:
    +
    +- LibreDB Studio, started with `npx @libredb/studio@0.13.4` or the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).
    +- A TiDB Self-Managed cluster.

    _🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_

    <details>
    <summary>🔎 Supported by static analysis</summary>

    🏁 Script executed:

    printf '%s\n' '--- applicable repository guidance ---'
    find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -maxdepth 2 -type f -name '*.md' -print
    printf '%s\n' '--- target document ---'
    nl -ba develop/dev-guide-gui-libredb-studio.md | sed -n '1,90p'
    printf '%s\n' '--- changed hunk ---'
    git diff -- develop/dev-guide-gui-libredb-studio.md
    printf '%s\n' '--- dependency declarations ---'
    rg -n -S '`@libredb/studio`|libredb|Node\.js|node' --glob '!*node_modules*' --glob '!*.lock' .
    

    Repository: pingcap/docs

    Length of output: 50369

    ---

    🏁 Script executed:

    printf '%s\n' '--- scoped guidance and learnings ---'
    find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -maxdepth 2 -type f -name '*.md' \
      | grep -E '/(develop|learnings|architecture)/' | head -80
    printf '%s\n' '--- target document ---'
    nl -ba develop/dev-guide-gui-libredb-studio.md | sed -n '1,85p'
    printf '%s\n' '--- target document SQL and prerequisites ---'
    rg -n -C 4 'Self-Managed|CREATE TABLE|INSERT|SELECT|database|user|password|privilege|permission|login' develop/dev-guide-gui-libredb-studio.md
    printf '%s\n' '--- relevant scoped guidance contents ---'
    for f in $(find /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c -maxdepth 2 -type f -name '*.md' | grep '/develop/' | head -20); do
      printf '\n--- %s ---\n' "$f"
      head -80 "$f"
    done
    

    Repository: pingcap/docs

    Length of output: 4187

    ---

    🌐 Web query:

    site:docs.pingcap.com/tidb/stable TiDB privileges CREATE TABLE INSERT SELECT privilege database table

    💡 Result:

    TiDB uses a privilege management system compatible with MySQL [1][2]. To manage privileges for CREATE TABLE, INSERT, and SELECT operations, you use the GRANT statement [2][3]. Privilege Levels and Requirements: 1. CREATE TABLE: To create a table, a user must have the CREATE privilege at the database or global level [1][4]. 2. INSERT: To add data to a table, a user must have the INSERT privilege [4]. 3. SELECT: To retrieve data from a table, a user must have the SELECT privilege [4]. Granting Privileges: You can grant these privileges at different scopes (global, database-level, or table-level) using the GRANT statement [2][5]. Granting privileges on a specific database (all tables in that database): GRANT SELECT, INSERT, CREATE ON database_name.* TO 'username'@'host'; [2][6] Granting privileges on a specific table: GRANT SELECT, INSERT, CREATE ON database_name.table_name TO 'username'@'host'; [2][7] Additional Notes: - Column-Level Privileges: Starting from TiDB v8.5.6, you can also grant or revoke SELECT and INSERT privileges on specific columns within a table [1][7]. - Role-Based Access Control: You can assign these privileges to roles and then grant those roles to users to simplify management [6]. - Verification: Use the SHOW GRANTS FOR 'username'@'host'; statement to check the privileges currently assigned to a user [3]. - System Tables: TiDB stores these privileges in the mysql system schema, specifically in the user, db, and tables_priv tables [1][5]. It is recommended to use SQL statements like GRANT and REVOKE rather than editing these tables directly [5].

    Citations:

  • 1: https://docs.pingcap.com/tidb/stable/privilege-management/

  • 2: https://docs.pingcap.com/tidb/stable/sql-statement-grant-privileges/

  • 3: https://docs.pingcap.com/tidb/stable/basic-sql-operations/

  • 4: https://docs.pingcap.com/tidb/stable/sql-statement-show-privileges/

  • 5: https://docs.pingcap.com/tidb/stable/mysql-schema/

  • 6: https://docs.pingcap.com/tidb/stable/role-based-access-control/

  • 7: https://docs.pingcap.com/tidb/stable/column-privilege-management/
  • ---

    </details>

    Require privileges for the sample SQL.

    A user can authenticate without the privileges required by the later CREATE TABLE, INSERT, and SELECT statements. Add the required privileges to this prerequisite.

    <details>
    <summary>Suggested replacement</summary>

    - A TiDB Self-Managed cluster and a TiDB user with `CREATE`, `INSERT`, and `SELECT` privileges on the database used by the tutorial.
    

    </details>

    <!-- fingerprinting:phantom:triton:caracal -->

    <!-- cr-indicator-types:potential_issue -->

    <!-- cr-comment:v1:00056c926ddb22932c5dbcc6 -->

    _Sources: Path instructions, MCP tools_

    <!-- This is an auto-generated comment by CodeRabbit -->

    ✅ Addressed in commit 8752444

    coderabbitai[bot] coderabbitai[bot] commented on Aug 28, 2026 20:51 UTC
    Reviewer

    Actionable comments posted: 2

    [!CAUTION]

    Some comments are outside the diff and can’t be posted inline due to platform limitations.

    >

    > <details>

    <summary>⚠️ Outside diff range comments (2)</summary><blockquote>

    > <details>

    <summary>develop/dev-guide-gui-libredb-studio.md (2)</summary><blockquote>

    > 30-30: _🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_

    > Document the LibreDB Studio login credentials.

    > For a zero-config start, use admin@libredb.org and the admin password printed once in the LibreDB Studio server log.

    > <details>

    <summary>Suggested replacement</summary>

    >
    > 1. Open LibreDB Studio in your browser and sign in. For a zero-config start, use `admin@libredb.org` and the admin password printed once in the LibreDB Studio server log.
    > 

    </details>

    > <!-- cr-comment:v1:1077822650cf171b6835bfcb -->

    > _Sources: Path instructions, MCP tools_

    > ---

    > 40-50: _🔒 Security & Privacy_ | _🟠 Major_ | _🏗️ Heavy lift_

    > Document the TLS path for Self-Managed clusters.

    > The form defaults to SSL Mode: disable. If TiDB enforces require_secure_transport, REQUIRE SSL, or REQUIRE X509, Test Connection fails with the documented settings. Add the SSL / TLS steps, including require, CA verification, and client certificate/key configuration, and update the screenshot. Otherwise, limit this tutorial to an insecure local test cluster.

    > <!-- cr-comment:v1:494c01c1dfe148cf81c90717 -->

    > _Sources: Path instructions, MCP tools_

    > </blockquote></details>

    > </blockquote></details>

    ---

    <details>
    <summary>ℹ️ Review info</summary>

    <details>
    <summary>⚙️ Run configuration</summary>

    Configuration used: Path: .coderabbit.yaml

    Review profile: ASSERTIVE

    Plan: Pro Plus

    Run ID: 6e4d9c93-41ed-42d7-b210-3ad2d94bea44

    </details>

    <details>
    <summary>📥 Commits</summary>

    Reviewing files that changed from the base of the PR and between 4806f605b4689a4f6161e2c6309848acf3306975 and b04b10e9d3327b1e4bdb01ddc9018a0c42bd4777.

    </details>

    <details>
    <summary>📒 Files selected for processing (1)</summary>

  • develop/dev-guide-gui-libredb-studio.md
  • </details>

    Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review.

    </details>

    <!-- This is an auto-generated comment by CodeRabbit for review status -->

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:53 UTC
    Code Review
    develop/dev-guide-gui-libredb-studio.md:1
    @@ -0,0 +1,82 @@
    +---
    +title: Connect to TiDB with LibreDB Studio
    +summary: Learn how to connect to TiDB using LibreDB Studio.
    +aliases: ['/tidb/stable/dev-guide-gui-libredb-studio/','/tidb/dev/dev-guide-gui-libredb-studio/','/tidbcloud/dev-guide-gui-libredb-studio/']
    +---
    +
    +# Connect to TiDB with LibreDB Studio
    +
    +TiDB is a MySQL-compatible database, and [LibreDB Studio](https://libredb.org) is an open-source, web-based SQL IDE that connects to PostgreSQL, MySQL-compatible databases, and a number of other engines from a single workspace. It ships as a Docker image and as an `npx` package, so it runs next to the database instead of requiring a desktop install.
    +
    +In this tutorial, you can learn how to connect to TiDB using LibreDB Studio.
    +
    +> **Note:**
    +>
    +> This tutorial covers TiDB Self-Managed only. It was not tested against TiDB Cloud, so it does not include TiDB Cloud connection steps.
    +
    +## Prerequisites
    +
    +To complete this tutorial, you need:
    +
    +- LibreDB Studio, started with `npx @libredb/studio` or the Docker image (see the [Quick Start](https://github.com/libredb/libredb-studio#quick-start) instructions).
    +- A TiDB Self-Managed cluster.
    +
    +**If you don't have a TiDB cluster, you can deploy one as follows:**
    +
    +- [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
    +
    +1. Open LibreDB Studio in your browser and sign in.
    +
    +2. Click the **+** button next to the LibreDB Studio logo in the top-left corner. This opens the **New Connection** dialog.
    +
    +    ![LibreDB Studio: the New Connection dialog](/media/develop/libredb-studio-new-connection.png)
    +
    +3. Select **MySQL** as the database type. TiDB does not have its own entry in this list because LibreDB Studio talks to it over the same driver it uses for MySQL; once MySQL is selected, a note under the type grid lists the wire-compatible engines that driver has been verified against, including the exact TiDB build LibreDB Studio was tested with.
    +
    +    ![LibreDB Studio: the MySQL driver's compatibility note lists TiDB](/media/develop/libredb-studio-mysql-compatibility-note.png)
    +
    +4. Configure the following connection parameters:
    +
    +    - **Connection Name**: give this connection a meaningful name, such as `TiDB`.
    +    - **Host & Instance**: enter the host and port of your TiDB cluster. The default TiDB port is `4000`.
    +    - **Username**: enter the username to connect to your TiDB cluster.
    +    - **Password**: enter the password for that username, if one is set.
    +    - **Database Name**: enter the name of an existing database on the cluster, such as `test`.
    +
    +    The following figure shows an example of the connection parameters:
    +
    +    ![LibreDB Studio: connection settings for a TiDB Self-Managed cluster](/media/develop/libredb-studio-connection-settings.png)
    +
    +5. Click **Test Connection** to validate the connection to your TiDB cluster.
    +
    +6. Click **Establish Connection** to save the connection and open it.
    +
    +7. In the query editor, run a statement to confirm the connection works end to end, for example:
    +
    +    ```sql
    +    CREATE TABLE demo_users (id INT PRIMARY KEY, name VARCHAR(50));
    +    INSERT INTO demo_users VALUES (1, 'Ada'), (2, 'Grace');
    +    SELECT * FROM demo_users;
    +    ```
    +
    +    Click **RUN** (or press **Ctrl+Enter**) to execute it.

    @kaya-abdullah, the direct test disproves the reported behavior. The documented single Ctrl+Enter execution is correct for this workflow. I am withdrawing this finding.

    ---

    <details>
    <summary>✏️ Learnings added</summary>

    Learnt from: kaya-abdullah
    Repo: pingcap/docs PR: 23659
    File: develop/dev-guide-gui-libredb-studio.md:56-64
    Timestamp: 2026-08-28T20:52:57.852Z
    Learning: In `develop/dev-guide-gui-libredb-studio.md`, LibreDB Studio executes the three-statement TiDB example as one batch when the statements are pasted into the query editor and the user presses Ctrl+Enter. The tested behavior displays “3 statements executed - All 3 statements completed in 30ms” and returns the rows inserted by the batch.
    

    Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

    </details>

    ✅ Review thread resolved.

    <sub>You are interacting with an AI system.</sub>

    <!-- This is an auto-generated reply by CodeRabbit -->

    coderabbitai[bot] coderabbitai[bot] commented on code on Aug 28, 2026 20:57 UTC
    Code Review
    develop/dev-guide-third-party-support.md:1
    @@ -60,6 +60,7 @@ If you encounter problems when connecting to TiDB using the tools listed in this
     | [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) |
     | [Navicat](https://www.navicat.com)                        | 17.1.6                | Full          | [Connect to TiDB with Navicat](/develop/dev-guide-gui-navicat.md) |
    +| [LibreDB Studio](https://libredb.org)                     | 0.13.4                | Full          | [Connect to TiDB with LibreDB Studio](/develop/dev-guide-gui-libredb-studio.md) |

    <details>
    <summary>🧩 Analysis chain</summary>

    🏁 Script executed:

    #!/bin/bash
    set -euo pipefail
    
    url='https://raw.githubusercontent.com/libredb/libredb-studio/main/docs/providers/mysql.md'
    curl --fail --location --silent --show-error "$url" |
      sed -n '/TiDB/,+180p'
    

    Length of output: 22989

    ---

    🏁 Script executed:

    #!/bin/bash
    set -euo pipefail
    
    url='https://raw.githubusercontent.com/libredb/libredb-studio/main/docs/providers/mysql.md'
    doc="$(mktemp)"
    trap 'rm -f "$doc"' EXIT
    curl --fail --location --silent --show-error "$url" > "$doc"
    
    printf '%s\n' '--- TiDB matches ---'
    grep -ni -E 'TiDB|15.*surface|background statistics|slow-query|slow query|phantom|InnoDB storage|EXPLAIN FORMAT' "$doc"
    
    printf '%s\n' '--- compatibility/results sections ---'
    grep -ni -E '^## .*([Cc]ompat|[Tt]est|[Rr]esult|[Vv]erif|[Ss]upport)' "$doc"
    
    printf '%s\n' '--- contextual excerpts around TiDB-specific matches ---'
    grep -ni 'TiDB' "$doc" | cut -d: -f1 | while read -r line; do
      start=$((line - 5))
      [ "$start" -lt 1 ] && start=1
      end=$((line + 20))
      sed -n "${start},${end}p" "$doc"
      printf '%s\n' '---'
    done
    

    Length of output: 6226

    ---

    🏁 Script executed:

    #!/bin/bash
    set -euo pipefail
    
    url='https://raw.githubusercontent.com/libredb/libredb-studio/main/docs/providers/README.md'
    doc="$(mktemp)"
    trap 'rm -f "$doc"' EXIT
    curl --fail --location --silent --show-error "$url" > "$doc"
    
    printf '%s\n' '--- matching headings and TiDB/caveat references ---'
    grep -ni -E '^#{1,4} |TiDB|15.*surface|background statistics|EXPLAIN FORMAT|slow.query|InnoDB.*storage|phantom' "$doc"
    
    printf '%s\n' '--- wire-compatible-engines section ---'
    start="$(grep -ni '^## .*Wire-compatible engines' "$doc" | head -1 | cut -d: -f1 || true)"
    if [ -n "$start" ]; then
      sed -n "${start},$((start + 220))p" "$doc"
    else
      printf '%s\n' 'Section not found.'
    fi
    

    Length of output: 68964

    ---

    </details>

    @kaya-abdullah, the referenced compatibility table confirms the broader test coverage.

    The table defines Full as all introspection surfaces answering. It permits documented data caveats. Its TiDB row records the tested version, the standalone --store=unistore scope, and the listed limitations. The original finding incorrectly treated the tutorial as the only evidence for the rating.

    ---

    <details>
    <summary>✏️ Learnings added</summary>

    Learnt from: kaya-abdullah
    Repo: pingcap/docs PR: 23659
    File: develop/dev-guide-third-party-support.md:63-63
    Timestamp: 2026-08-28T20:56:48.113Z
    Learning: For LibreDB Studio support documentation in `develop/dev-guide-third-party-support.md`, the `Full` rating for TiDB is based on LibreDB Studio's external `docs/providers/README.md` wire-compatible-engine probe results, not only on the TiDB connection tutorial. The TiDB probe covers a standalone `--store=unistore` TiDB server and documents caveats including statistics lag, an empty slow-query panel, a phantom `InnoDB` storage entry, and unsupported `EXPLAIN FORMAT='json'`; PD + TiKV was not probed.
    

    Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

    </details>

    ✅ Review thread resolved.

    <sub>You are interacting with an AI system.</sub>

    <!-- This is an auto-generated reply by CodeRabbit -->

    kaya-abdullah kaya-abdullah commented on Sep 09, 2026 21:36 UTC
    Author

    Hi @kissmydb, same situation as the sibling PR (#23658). This one is still waiting on /ok-to-test from a pingcap member so CI can run. Could you or someone else take a look? Happy to address any feedback.

    qiancai qiancai commented on Sep 10, 2026 01:34 UTC
    Contributor

    hi @Icemap, would you please help with the tech review? Thanks.

    kaya-abdullah kaya-abdullah commented on Sep 21, 2026 10:03 UTC
    Author

    Hi @Icemap, following up since @qiancai asked you to take a look at this a while back. Happy to address anything you find, just did not want it to slip through.

    Icemap Icemap commented on Sep 21, 2026 13:15 UTC
    Contributor

    Hi @kaya-abdullah . I was fired by PingCAP. @qiancai, could you please re-dispatch the review to another staff in PingCAP?

    kaya-abdullah kaya-abdullah commented on Sep 22, 2026 19:16 UTC
    Author

    Hi @qiancai, following up on Icemap's note above - could you redispatch this to someone else on the team for review? Happy to address any feedback.

    qiancai qiancai commented on Sep 25, 2026 00:29 UTC
    Contributor

    @guangleibao would you please help take over and help with the tech review? Thanks.

    kaya-abdullah kaya-abdullah commented on Oct 08, 2026 23:34 UTC
    Author

    Hi @guangleibao, just checking in on this one and its companion #23658 (the single table row this tutorial builds on). Both are still waiting on /ok-to-test. Happy to make any changes you would like.

    Reviewers
    Assignees
    kaya-abdullah kaya-abdullah
    Labels
    risk: low confidence: 85.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52.5% (MEDIUM) · Higher = larger blast radius
    52.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 85.0% · Lower = rushed or shallow review
    85.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.9% · Safe to merge
    7.9%
    Repository