mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 19:55:24 +02:00
influx: add page (#3605)
This commit is contained in:
parent
bf696e0ccd
commit
707db4b5b2
1 changed files with 28 additions and 0 deletions
28
pages/common/influx.md
Normal file
28
pages/common/influx.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# influx
|
||||||
|
|
||||||
|
> InfluxDB command-line client.
|
||||||
|
> More information: <https://docs.influxdata.com/influxdb/v1.7/tools/shell/>.
|
||||||
|
|
||||||
|
- Connect to an InfluxDB running on localhost with no credentials:
|
||||||
|
|
||||||
|
`influx`
|
||||||
|
|
||||||
|
- Connect with a specific username (will prompt for a password):
|
||||||
|
|
||||||
|
`influx -username {{username}} -password ""`
|
||||||
|
|
||||||
|
- Connect to a specific host:
|
||||||
|
|
||||||
|
`influx -host {{hostname}}`
|
||||||
|
|
||||||
|
- Use a specific database:
|
||||||
|
|
||||||
|
`influx -database {{database_name}}`
|
||||||
|
|
||||||
|
- Execute a given command:
|
||||||
|
|
||||||
|
`influx -execute "{{influxql_command}}"`
|
||||||
|
|
||||||
|
- Return output in a specific format:
|
||||||
|
|
||||||
|
`influx -execute "{{influxql_command}}" -format {{json|csv|column}}`
|
Loading…
Add table
Reference in a new issue