> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-detect-table-modification.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Power BI で ClickHouse Connector を使用した際の ODBC 認証失敗エラー

> Power BI で ClickHouse Connector を使用した際の ODBC 認証失敗エラー

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>;
};

{frontMatter.description}

<div id="question">
  ## 質問
</div>

コネクタを使ってPowerBIからClickHouseに接続しようとすると、認証エラーが発生します。

このエラーは通常、次のように表示されます。

```
We encountered an error while trying to connect.
Details: "ODBC: ERROR [HY000] HTTP status code: 403
Received error:
Code: 516. DB::Exception: default: Authentication failed: password is incorrect, or there is no user with such name.
If you have installed ClickHouse and forgot password you can reset it in the configuration file.
The password for default user is typically located at /etc/clickhouse-server/users.d/default-password.xml and deleting this file will reset the password.
See also /etc/clickhouse-server/users.ml on the server where
ClickHouse is installed.
```

<Image img="https://mintcdn.com/private-7c7dfe99-detect-table-modification/khTo4jdOlx_yU9ob/images/knowledgebase/powerbi_odbc_authentication_error.webp?fit=max&auto=format&n=khTo4jdOlx_yU9ob&q=85&s=a5987c84b0aacad5b6aba197dad30af2" size="md" alt="Power BI ODBC の認証エラーダイアログ" border width="1152" height="718" data-path="images/knowledgebase/powerbi_odbc_authentication_error.webp" />

<div id="answer">
  ## 回答
</div>

ClickHouse ODBC ドライバをバージョン [1.4.1](https://github.com/ClickHouse/clickhouse-odbc/releases/tag/1.4.1.20250523) に更新してください。

更新できない場合は、パスワードにチルダ (\~) が含まれていないか確認してください。[1.4.1](https://github.com/ClickHouse/clickhouse-odbc/releases/tag/1.4.1.20250523) より前のバージョンでは、これが問題を引き起こすことがあります。

接続には専用のユーザーを使用し、パスワードは手動で設定することを推奨します。ClickHouse Cloud を使用していて、`default` ユーザーと同等の管理者レベルのアクセスが必要な場合は、新しいユーザーを作成し、そのユーザーに `default_role` を割り当ててください。

詳細情報:
[https://clickhouse.com/docs/operations/access-rights#user-account-management](https://clickhouse.com/docs/operations/access-rights#user-account-management)
[https://clickhouse.com/docs/cloud/security/cloud-access-management#database-roles](https://clickhouse.com/docs/cloud/security/cloud-access-management#database-roles)
