mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-09 07:52:19 +00:00
8782873e4f
Before the following did not work, it always uses user `dev`, even with `clickhouse-client --connection prod`: ```yaml user: dev connections_credentials: prod: name: prod user: prod ``` The problem was that before it was not possible to distinguish options that had been set via command line options and via configuration file. I've splitted this two actions, and embedded a call to parseConnectionsCredentials() in between. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
28 lines
632 B
Plaintext
28 lines
632 B
Plaintext
connection
|
|
No such connection 'no_such_connection' in connections_credentials
|
|
hostname
|
|
Not found address of host: test_hostname_invalid.
|
|
1
|
|
system
|
|
system
|
|
port
|
|
Connection refused (localhost:0).
|
|
9000
|
|
secure
|
|
1
|
|
database
|
|
system
|
|
user
|
|
MySQL: Authentication failed
|
|
default
|
|
password
|
|
default: Authentication failed: password is incorrect, or there is no user with such name.
|
|
default
|
|
history_file
|
|
Cannot create file: /no/such/dir/.history
|
|
root overrides
|
|
foo: Authentication failed: password is incorrect, or there is no user with such name.
|
|
default
|
|
default
|
|
foo: Authentication failed: password is incorrect, or there is no user with such name.
|