New to ClickHouse, can't create local host

Viewed 6608

I'm new to clickhouse and trying to get started. I've installed all the packages needed to be able to use it on my computer (ubuntu 16.04) but when I use the clickhouse-client command I get the following:

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.

Do anyone know what I should do?

2 Answers

That's because the first time you installed ClickHouse you have entered the default password so you must provide that one as an argument to the clickhouse-client e.g

clickhouse-client --password=your-password 

reference

Related