8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

influxdbのコマンドメモ

Posted at

influxコマンドから入れる対話モードの時に
実行できるコマンドメモ

(調べたら随時追記していく)

環境

influxdb: 1.3.7

データベース操作

  • 作成
create database "db"
  • 一覧表示
> show databases;
name: databases
name
----
_internal
db
  • 削除
drop database "db"

measurements操作

measurementsはテーブルのようなもの
はじめに使用するデータベースを選択してから実行する

use "db"
  • 作成

insertで作成する
measurement(meas)とtag key(key=1)とfields(value=2)を指定する

insert meas,key=1 value=2
  • 一覧表示
>show measurements
name: measurements
name
----
meas
  • 削除
drop measurement "meas"

measurementの中身操作

  • tag key一覧表示
> show tag keys
name: meas
tagKey
------
key
  • tag keyのvalue一覧表示
> show tag values with key = "key"
name: meas
key value
--- -----
key 1

参考

8
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?