Skip to content

Commit

Permalink
The example Clickhouse DSN incorrectly described how to set the usern…
Browse files Browse the repository at this point in the history
…ame and password.

The example:

   `clickhouse://username:password@host:port/database=clicks?x-multi-statement=true`

did not work, but:

`clickhouse://host:port?username=user&password=password&database=clicks&x-multi-statement=true`

does.

I got the above DSN format from the tests.
  • Loading branch information
agcooke committed Aug 19, 2022
1 parent 03613f1 commit 8c64ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/clickhouse/README.md
@@ -1,6 +1,6 @@
# ClickHouse

`clickhouse://username:password@host:port/database=clicks?x-multi-statement=true`
`clickhouse://host:port?username=user&password=password&database=clicks&x-multi-statement=true`

| URL Query | Description |
|------------|-------------|
Expand Down

2 comments on commit 8c64ac7

@liyuq6
Copy link

@liyuq6 liyuq6 commented on 8c64ac7 Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@liyuq6
Copy link

@liyuq6 liyuq6 commented on 8c64ac7 Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't I use cli to execute the command of ck

Please sign in to comment.