2017-03-25 20:12:56 +00:00
|
|
|
<!-- Config set into /etc/clickhouse-client/. It's used if no other configs are found. -->
|
2016-06-07 08:23:15 +00:00
|
|
|
<config>
|
2017-09-29 18:21:26 +00:00
|
|
|
<openSSL>
|
|
|
|
<client> <!-- Used for connection to server's secure tcp port -->
|
|
|
|
<loadDefaultCAFile>true</loadDefaultCAFile>
|
|
|
|
<cacheSessions>true</cacheSessions>
|
|
|
|
<disableProtocols>sslv2,sslv3</disableProtocols>
|
|
|
|
<preferServerCiphers>true</preferServerCiphers>
|
|
|
|
<!-- Use for self-signed: <verificationMode>none</verificationMode> -->
|
|
|
|
<invalidCertificateHandler>
|
|
|
|
<!-- Use for self-signed: <name>AcceptCertificateHandler</name> -->
|
|
|
|
<name>RejectCertificateHandler</name>
|
|
|
|
</invalidCertificateHandler>
|
|
|
|
</client>
|
|
|
|
</openSSL>
|
2018-03-08 07:36:58 +00:00
|
|
|
<!--
|
|
|
|
It's a custom prompt settings for the clickhouse-client
|
2022-11-27 19:23:34 +00:00
|
|
|
|
2018-07-11 15:58:29 +00:00
|
|
|
Possible macros:
|
2018-03-08 07:36:58 +00:00
|
|
|
{host}
|
|
|
|
{port}
|
|
|
|
{user}
|
|
|
|
{display_name}
|
2022-11-27 19:23:34 +00:00
|
|
|
|
|
|
|
You can also use colored prompt, like in [1].
|
|
|
|
|
|
|
|
[1]: https://misc.flogisoft.com/bash/tip_colors_and_formatting
|
|
|
|
|
|
|
|
But note, that ClickHouse does not use readline anymore, instead it uses
|
|
|
|
replxx. This means that you don't need the following:
|
|
|
|
- RL_PROMPT_START_IGNORE (\001)
|
|
|
|
- RL_PROMPT_END_IGNORE (\002)
|
2018-03-08 07:36:58 +00:00
|
|
|
-->
|
2018-02-26 13:24:06 +00:00
|
|
|
<prompt_by_server_display_name>
|
2018-03-08 07:36:58 +00:00
|
|
|
<default>{display_name} :) </default>
|
2022-11-27 19:23:34 +00:00
|
|
|
<test>{display_name} \e[1;32m:)\e[0m </test> <!-- if it matched to the substring "test" in the server display name - -->
|
|
|
|
<production>{display_name} \e[1;31m:)\e[0m </production> <!-- if it matched to the substring "production" in the server display name -->
|
2018-02-26 13:24:06 +00:00
|
|
|
</prompt_by_server_display_name>
|
2021-02-10 09:02:35 +00:00
|
|
|
|
|
|
|
<!--
|
2021-02-10 13:39:59 +00:00
|
|
|
Settings adjustable via command-line parameters
|
2021-02-10 09:02:35 +00:00
|
|
|
can take their defaults from that config file, see examples:
|
|
|
|
|
|
|
|
<host>127.0.0.1</host>
|
|
|
|
<port>9440</port>
|
|
|
|
<secure>1</secure>
|
|
|
|
<user>dbuser</user>
|
|
|
|
<password>dbpwd123</password>
|
|
|
|
<format>PrettyCompactMonoBlock</format>
|
|
|
|
<multiline>1</multiline>
|
|
|
|
<multiquery>1</multiquery>
|
|
|
|
<stacktrace>1</stacktrace>
|
|
|
|
<database>default2</database>
|
|
|
|
<pager>less -SR</pager>
|
|
|
|
<history_file>/home/user/clickhouse_custom_history.log</history_file>
|
|
|
|
<max_parser_depth>2500</max_parser_depth>
|
|
|
|
|
|
|
|
The same can be done on user-level configuration, just create & adjust: ~/.clickhouse-client/config.xml
|
|
|
|
-->
|
2016-06-07 08:23:15 +00:00
|
|
|
</config>
|