跳至主要内容

使用 Power BI ClickHouse 连接器时,ODBC 身份验证失败错误

使用 Power BI ClickHouse 连接器时,ODBC 身份验证失败错误

问题

尝试使用连接器从 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.

答案

将 ClickHouse ODBC 驱动程序更新到版本 1.4.1

如果无法更新,请检查密码是否包含波浪号 (~) ,因为这可能在 1.4.1 之前的版本中导致问题。

我们建议为连接使用专用用户并手动设置密码。如果您使用的是 ClickHouse Cloud 并且需要与 default 用户具有相同级别的管理员访问权限,则创建一个新用户并为其分配 default_role 角色。

更多信息
https://clickhouse.ac.cn/docs/operations/access-rights#user-account-management https://clickhouse.ac.cn/docs/cloud/security/cloud-access-management#database-roles

·2 分钟阅读
    © . This site is unofficial and not affiliated with ClickHouse, Inc.