Ubuntu 22.04
Sponsored Link

InfluxDB : Basic User Management2022/10/26

 
This is InfluxDB Basic User Management example.
[1] Add or delete InfluxDB users.
root@dlp:~#
influx -username admin -password adminpassword

Connected to http://localhost:8086 version 1.6.7~rc0
InfluxDB shell version: 1.6.7~rc0

# create [ubuntu] user
# replace [userpassword] to any password
> create user ubuntu with password 'userpassword' 

# create [serverworld] user with admin privilege
> create user serverworld with password 'userpassword' with all privileges 

> show users 
user        admin
----        -----
admin       true
ubuntu      false
serverworld true

# add admin privilege to [ubuntu] user
> grant all privileges to "ubuntu" 

> show users 
user        admin
----        -----
admin       true
ubuntu      true
serverworld true

# remove admin privilege from [ubuntu] user
> revoke all privileges from "ubuntu" 

# change [ubuntu] user's password
> set password for "ubuntu" = 'newpassword' 

# delete [ubuntu] user
> drop user "ubuntu" 

> exit
Matched Content