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 [debian] user
# replace [userpassword] to any password
> create user debian with password 'userpassword'
# create [serverworld] user with admin privilege
> create user serverworld with password 'userpassword' with all privileges
> show users
user admin
---- -----
admin true
debian false
serverworld true
# add admin privilege to [debian] user
> grant all privileges to "debian"
> show users
user admin
---- -----
admin true
debian true
serverworld true
# remove admin privilege from [debian] user
> revoke all privileges from "debian"
# change [debian] user's password
> set password for "debian" = 'newpassword'
# delete [debian] user
> drop user "debian"
> exit
|