root@dlp:~ # influx -username admin -password adminpassword
Connected to http://localhost:8086 version 1.8.10
InfluxDB shell version: 1.8.10
# create [freebsd] user
# replace [userpassword] to any password
> create user freebsd with password 'userpassword'
# create [serverworld] user with admin privilege
> create user serverworld with password 'userpassword' with all privileges
> show users
user admin
---- -----
admin true
freebsd false
serverworld true
# add admin privilege to [freebsd] user
> grant all privileges to "freebsd"
> show users
user admin
---- -----
admin true
freebsd true
serverworld true
# remove admin privilege from [freebsd] user
> revoke all privileges from "freebsd"
# change [freebsd] user's password
> set password for "freebsd" = 'newpassword'
# delete [freebsd] user
> drop user "freebsd"
> exit
|