> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> DBeaver はマルチプラットフォーム対応のデータベースツールです。

# DBeaver を ClickHouse に接続する

export const PartnerBadge = () => {
  return <div className="PartnerBadge">
            <div className="PartnerBadgeIcon">
                <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <polyline points="12.5 9.5 10 12 6 11 2.5 8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="4.54 4.41 8 3.5 11.46 4.41" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M2.15,3.78 L0.55,6.95 A0.5,0.5 0,0,0 0.77,7.62 L2.5,8.5 L4.54,4.41 L2.82,3.55 A0.5,0.5 0,0,0 2.15,3.78 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M13.5,8.5 L15.23,7.62 A0.5,0.5 0,0,0 15.45,6.95 L13.85,3.78 A0.5,0.5 0,0,0 13.18,3.55 L11.46,4.41 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M11.5,4.5 L9,4.5 L6.15,7.27 A0.5,0.5 0,0,0 6.24,8.05 C7.33,8.74 8.81,8.72 10,7.5 L12.5,9.5 L13.5,8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="7.75 13.5 5.15 12.85 3.5 11.67" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                </svg>
            </div>
            パートナーインテグレーション
        </div>;
};

export const Image = ({img, alt, size = "lg"}) => {
  const normalizedSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
  return <div className={`ch-image-${normalizedSize}`}>
      <Frame>
        <img src={img} alt={alt} />
      </Frame>
    </div>;
};

<PartnerBadge />

DBeaver には複数のエディションがあります。このガイドでは [DBeaver Community](https://dbeaver.io/) を使用します。各エディションと機能については [こちら](https://dbeaver.com/edition/) を参照してください。DBeaver は JDBC を使用して ClickHouse に接続します。

<Note>
  ClickHouse の `Nullable` カラムのサポートを改善するため、DBeaver バージョン 23.1.0 以降を使用してください。
</Note>

<Steps>
  <Step title="ClickHouse の接続情報を確認する" id="1-gather-your-clickhouse-details">
    DBeaver は HTTP(S) 経由の JDBC を使用して ClickHouse に接続します。以下が必要です。

    * endpoint
    * ポート番号
    * username
    * password
  </Step>

  <Step title="DBeaver をダウンロードする" id="2-download-dbeaver">
    DBeaver は [https://dbeaver.io/download/](https://dbeaver.io/download/) から入手できます
  </Step>

  <Step title="データベースを追加する" id="3-add-a-database">
    * **Database > New Database Connection** メニュー、または **Database Navigator** の **New Database Connection** アイコンを使用して、**Connect to a database** ダイアログを開きます。

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-add-database.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=6f6924264c39c27a3c16661592163227" size="md" border alt="新しいデータベースを追加する" width="642" height="385" data-path="images/integrations/sql-clients/dbeaver-add-database.webp" />

    * **Analytical** を選択し、次に **ClickHouse** を選択します。

    * JDBC URL を作成します。**Main** タブで Host、Port、Username、Password、Database を設定します。

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-host-port.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=16ee7f52fde1d693090244aadb65fe95" size="md" border alt="ホスト名、ポート、ユーザー、パスワード、データベース名を設定する" width="650" height="654" data-path="images/integrations/sql-clients/dbeaver-host-port.webp" />

    * デフォルトでは **SSL > Use SSL** プロパティは未設定です。ClickHouse Cloud または HTTP ポートで SSL が必要なサーバーに接続する場合は、**SSL > Use SSL** を有効にします。

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-use-ssl.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=c2433e71b3b75b2e2970648c98ddf875" size="md" border alt="必要に応じて SSL を有効にする" width="650" height="654" data-path="images/integrations/sql-clients/dbeaver-use-ssl.webp" />

    * 接続をテストします。

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-test-connection.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=bc1487c11c2a6f8abbb8b8623a407039" size="md" border alt="接続をテストする" width="650" height="654" data-path="images/integrations/sql-clients/dbeaver-test-connection.webp" />

    DBeaver が ClickHouse ドライバーがインストールされていないことを検出すると、ダウンロードするよう案内されます。

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-download-driver.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=d80540e5b6230d2374e3d90c6e645be7" size="md" border alt="ClickHouse ドライバーをダウンロードする" width="612" height="689" data-path="images/integrations/sql-clients/dbeaver-download-driver.webp" />

    * ドライバーをダウンロードしたら、もう一度 **Test** して接続を確認します。

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-test-connection.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=bc1487c11c2a6f8abbb8b8623a407039" size="md" border alt="接続をテストする" width="650" height="654" data-path="images/integrations/sql-clients/dbeaver-test-connection.webp" />
  </Step>

  <Step title="ClickHouse にクエリを実行する" id="4-query-clickhouse">
    クエリエディタを開いてクエリを実行します。

    * 接続を右クリックし、**SQL エディタ > Open SQL Script** を選択してクエリエディタを開きます。

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-sql-editor.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=f103364c2cf38dc970ec95f09bb1c948" size="md" border alt="SQL エディタを開く" width="636" height="162" data-path="images/integrations/sql-clients/dbeaver-sql-editor.webp" />

    * `system.query_log` に対するクエリの例:

    <Image img="https://mintcdn.com/private-7c7dfe99/B2SPNiDHMxYV1gTC/images/integrations/sql-clients/dbeaver-query-log-select.webp?fit=max&auto=format&n=B2SPNiDHMxYV1gTC&q=85&s=433e0a24f7bf554e8aea6b8a62a67e50" size="md" border alt="クエリのサンプル" width="712" height="316" data-path="images/integrations/sql-clients/dbeaver-query-log-select.webp" />
  </Step>
</Steps>

<div id="next-steps">
  ## 次のステップ
</div>

DBeaver の機能については [DBeaver wiki](https://github.com/dbeaver/dbeaver/wiki) を、ClickHouse の機能については [ClickHouse ドキュメント](/docs/ja/) を参照してください。
