首页 > 解决方案 > ClickHouse 新手,无法创建本地主机

问题描述

我是 Clickhouse 的新手,正在尝试开始。我已经安装了能够在我的计算机上使用它所需的所有软件包(ubuntu 16.04),但是当我使用 clickhouse-client 命令时,我得到以下信息:

ClickHouse client version 20.3.4.10 (official build).
Connecting to localhost:9000 as user default.
Code: 516. DB::Exception: Received from localhost:9000. DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name.

有谁知道我应该怎么做?

标签: clickhouse

解决方案


在这里找到密码:

打开终端并运行:

sudo nano /etc/clickhouse-server/users.d/default-password.xml

来源:https ://clickhouse.tech/docs/en/operations/configuration-files/


推荐阅读