Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password required for user default #31

Open
Haseeb717 opened this issue Jan 29, 2020 · 1 comment
Open

Password required for user default #31

Haseeb717 opened this issue Jan 29, 2020 · 1 comment

Comments

@Haseeb717
Copy link

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?

@Bablzz
Copy link

Bablzz commented Jan 30, 2020

Hi, @Haseeb717
I've found this

def ensure_authentication

Try set password in connection options

options = {
              :scheme => "http",
              :host => "localhost",
              :port => 8123,
              :password => "pass"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants