跳到主要内容
跳到主要内容

连接 DbVisualizer 到 ClickHouse

Community Maintained

开始或下载 DbVisualizer

DbVisualizer 可在 https://www.dbvis.com/download/ 获取。

1. 收集连接详细信息

To connect to ClickHouse with HTTP(S) you need this information:

  • The HOST and PORT: typically, the port is 8443 when using TLS or 8123 when not using TLS.

  • The DATABASE NAME: out of the box, there is a database named default, use the name of the database that you want to connect to.

  • The USERNAME and PASSWORD: out of the box, the username is default. Use the username appropriate for your use case.

The details for your ClickHouse Cloud service are available in the ClickHouse Cloud console. Select the service that you will connect to and click Connect:

Choose HTTPS, and the details are available in an example curl command.

If you are using self-managed ClickHouse, the connection details are set by your ClickHouse administrator.


ClickHouseにHTTP(S)で接続するには、次の情報が必要です:

  • HOSTとPORT: 通常、ポートはTLSを使用する場合は8443、TLSを使用しない場合は8123です。

  • DATABASE NAME: デフォルトでは、defaultという名前のデータベースがあります。接続したいデータベースの名前を使用してください。

  • USERNAMEとPASSWORD: デフォルトでは、ユーザー名はdefaultです。ご利用のケースに適したユーザー名を使用してください。

ClickHouse Cloudサービスの詳細はClickHouse Cloudコンソールで確認できます。接続するサービスを選択し、Connectをクリックします:

HTTPSを選択すると、詳細が例のcurlコマンドで提供されます。

セルフマネージドのClickHouseを使用している場合、接続の詳細はClickHouseの管理者によって設定されます。

2. 内置 JDBC 驱动管理

DbVisualizer 包含最新的 ClickHouse JDBC 驱动。它内置了完整的 JDBC 驱动管理,指向最新版本以及驱动的历史版本。

3. 连接到 ClickHouse

要通过 DbVisualizer 连接数据库,您必须首先创建并设置数据库连接。

  1. Database->Create Database Connection 创建一个新连接,并从弹出菜单中选择数据库驱动。

  2. 为新连接打开 Object View 选项卡。

  3. Name 字段中输入连接的名称,可选地在 Notes 字段中输入连接的描述。

  4. Database Type 保持为 Auto Detect

  5. 如果在 Driver Type 中选定的驱动旁边标有绿色勾号,则可以使用。如果未标记绿色勾号,您可能需要在 Driver Manager 中配置驱动。

  6. 在其余字段中输入数据库服务器的信息。

  7. 点击 Ping Server 按钮,验证是否可以与指定的地址和端口建立网络连接。

  8. 如果 Ping Server 的结果显示可以到达服务器,点击 Connect 以连接到数据库服务器。

提示

如果您在连接数据库时遇到问题,请参见 Fixing Connection Issues 获取一些提示。

了解更多

有关 DbVisualizer 的更多信息,请访问 DbVisualizer documentation