mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #7931 from BayoNet/l10n/CLICKHOUSEDOCS-129-cli-warning
DOCS-129: Update of CLI description. EN review. RU translation.
This commit is contained in:
commit
a4b0c24c1b
@ -1,8 +1,8 @@
|
||||
# Command-line Client
|
||||
|
||||
ClickHouse provides the native command line client `clickhouse-client`. The client supports command-line options and configuration files. For more information, see "[Configuring](#interfaces_cli_configuration)".
|
||||
ClickHouse provides a native command-line client: `clickhouse-client`. The client supports command-line options and configuration files. For more information, see [Configuring](#interfaces_cli_configuration).
|
||||
|
||||
[Install](../getting_started/index.md) it by the `clickhouse-client` package and run it by the command `clickhouse-client`.
|
||||
[Install](../getting_started/index.md) it from the `clickhouse-client` package and run it with the command `clickhouse-client`.
|
||||
|
||||
```bash
|
||||
$ clickhouse-client
|
||||
@ -13,7 +13,7 @@ Connected to ClickHouse server version 19.17.1 revision 54428.
|
||||
:)
|
||||
```
|
||||
|
||||
Different versions of client and server are compatible, but some features may be disabled for older clients. We don't recommend using different versions of the client and the server app. When you try to use the client of the older version, then the server, `clickhouse-client` displays the message:
|
||||
Different client and server versions are compatible with one another, but some features may not be available in older clients. We recommend using the same version of the client as the server app. When you try to use a client of the older version, then the server, `clickhouse-client` displays the message:
|
||||
|
||||
```
|
||||
ClickHouse client version is older than ClickHouse server. It may lack support for new features.
|
||||
@ -45,9 +45,9 @@ Similarly, to process a large number of queries, you can run 'clickhouse-client'
|
||||
|
||||
In interactive mode, you get a command line where you can enter queries.
|
||||
|
||||
If 'multiline' is not specified (the default):To run the query, press Enter. The semicolon is not necessary at the end of the query. To enter a multiline query, enter a backslash `\` before the line feed. After you press Enter, you will be asked to enter the next line of the query.
|
||||
If 'multiline' is not specified (the default): To run the query, press Enter. The semicolon is not necessary at the end of the query. To enter a multiline query, enter a backslash `\` before the line feed. After you press Enter, you will be asked to enter the next line of the query.
|
||||
|
||||
If multiline is specified:To run a query, end it with a semicolon and press Enter. If the semicolon was omitted at the end of the entered line, you will be asked to enter the next line of the query.
|
||||
If multiline is specified: To run a query, end it with a semicolon and press Enter. If the semicolon was omitted at the end of the entered line, you will be asked to enter the next line of the query.
|
||||
|
||||
Only a single query is run, so everything after the semicolon is ignored.
|
||||
|
||||
|
@ -1,17 +1,23 @@
|
||||
# Клиент командной строки
|
||||
|
||||
Для работы из командной строки вы можете использовать `clickhouse-client`:
|
||||
ClickHouse предоставляет собственный клиент командной строки: `clickhouse-client`. Клиент поддерживает запуск с аргументами командной строки и с конфигурационными файлами. Подробнее читайте в разделе [Конфигурирование](#interfaces_cli_configuration).
|
||||
|
||||
Клиент [устанавливается](../getting_started/index.md) пакетом `clickhouse-client` и запускается командой `clickhouse-client`.
|
||||
|
||||
```bash
|
||||
$ clickhouse-client
|
||||
ClickHouse client version 0.0.26176.
|
||||
Connecting to localhost:9000.
|
||||
Connected to ClickHouse server version 0.0.26176.
|
||||
ClickHouse client version 19.17.1.1579 (official build).
|
||||
Connecting to localhost:9000 as user default.
|
||||
Connected to ClickHouse server version 19.17.1 revision 54428.
|
||||
|
||||
:)
|
||||
```
|
||||
|
||||
Клиент поддерживает параметры командной строки и конфигурационные файлы. Подробнее читайте в разделе "[Конфигурирование](#interfaces_cli_configuration)".
|
||||
Клиенты и серверы различных версий совместимы, однако если клиент старее сервера, то некоторые новые фукнции могут быть недоступны. Мы рекомендуем использовать одинаковые версии клиента и сервера. При подключении клиента к более новому серверу `clickhouse-client` выводит сообщение:
|
||||
|
||||
```
|
||||
ClickHouse client version is older than ClickHouse server. It may lack support for new features.
|
||||
```
|
||||
|
||||
## Использование {#cli_usage}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user