influxdb 笔记: 用户管理

https://docs.influxdata.com/influxdb/v0.13/administration/authentication_and_authorization/#authorization

# /etc/influxdb/influxdb.conf
# 必须在未开启前创建用户
[http]
  auth-enabled = false|true

### 授权
# admin
# GRANT ALL PRIVILEGES TO
# REVOKE ALL PRIVILEGES FROM
CREATE USER root WITH PASSWORD 'influxdb123' WITH ALL PRIVILEGES

# not admin
# GRANT [READ,WRITE,ALL] ON TO
# REVOKE [READ,WRITE,ALL] ON FROM
CREATE USER dba WITH PASSWORD 'dba123'
GRANT ALL ON dba TO dba

### 查看
show users

你可能感兴趣的:(influxdb 笔记: 用户管理)