InfluxDB : ユーザー管理 基本操作
2022/11/16 |
InfluxDB のユーザー管理の基本操作です。
|
|
[1] | ユーザーを追加/削除する。 |
[root@dlp ~]# influx -username admin -password adminpassword Connected to http://localhost:8086 version 1.8.10 InfluxDB shell version: 1.8.10 # [centos] ユーザー作成 # [userpassword] には任意のパスワードを設定 > create user centos with password 'userpassword' # 管理者権限を付与して [serverworld] ユーザー作成 > create user serverworld with password 'userpassword' with all privileges > show users user admin ---- ----- admin true centos false serverworld true # [centos] ユーザーに管理者権限を付与 > grant all privileges to "centos" > show users user admin ---- ----- admin true centos true serverworld true # [centos] ユーザーの管理者権限を取り消す > revoke all privileges from "centos" # [centos] ユーザーのパスワードを変更 > set password for "centos" = 'newpassword' # [centos] ユーザーを削除 > drop user "centos" > exit |