clickhouse
clickhouse copied to clipboard
Password required for user default
When I run this command Clickhouse.connection.databases
it gives an error
Clickhouse::QueryError: Got status 401 (expected 200): Code: 194, e.displayText() = DB::Exception: Password required for user default (version 19.17.6.36 (official build))
how can I give password?
Hi, @Haseeb717 I've found this https://github.com/archan937/clickhouse/blob/6b00d0459d0633e0c7b755166b0e4e0dab044076/lib/clickhouse/connection/client.rb#L43
Try set password in connection options
options = {
:scheme => "http",
:host => "localhost",
:port => 8123,
:password => "pass"
}