> ## 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.

# Ошибка «ODBC authentication failed» при использовании коннектора ClickHouse для Power BI

> Ошибка «ODBC authentication failed» при использовании коннектора ClickHouse для Power BI

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>

При попытке подключиться к ClickHouse из Power BI с помощью коннектора вы получаете ошибку аутентификации.

Обычно эта ошибка выглядит так:

```
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/mWK0LIJWA-YNz_kU/images/knowledgebase/powerbi_odbc_authentication_error.webp?fit=max&auto=format&n=mWK0LIJWA-YNz_kU&q=85&s=254f7c7ae0019078a746a89e368bf2b2" size="md" alt="Диалоговое окно ошибки аутентификации ODBC в Power BI" border width="1152" height="718" data-path="images/knowledgebase/powerbi_odbc_authentication_error.webp" />

<div id="answer">
  ## Ответ
</div>

Обновите ClickHouse ODBC Driver до версии [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)
