Files
tldr/pages.zh/common/influx.md

594 B
Raw Blame History

influx

InfluxDB 命令行客户端。 更多信息:https://docs.influxdata.com/influxdb/v1.7/tools/shell/.

  • 连接到运行在 localhost 的 InfluxDB且无需凭证

influx

  • 使用特定用户名连接(将提示输入密码):

influx -username {{username}} -password ""

  • 连接到特定主机:

influx -host {{hostname}}

  • 使用特定数据库:

influx -database {{database_name}}

  • 执行给定命令:

influx -execute "{{influxql_command}}"

  • 以特定格式返回输出:

influx -execute "{{influxql_command}}" -format {{json|csv|column}}