【发布时间】:2019-06-28 05:31:39
【问题描述】:
我在 InfluxDB 中设置身份验证时遇到问题。首先跟随教程告诉我更改配置文件:
[http]
enabled = true
bind-address = ":8086"
auth-enabled = true # ✨
log-enabled = true
write-tracing = false
pprof-enabled = false
https-enabled = false
https-certificate = "/etc/ssl/influxdb.pem"
但是当我更改并重新加载服务器时。我无法创建用户。
CREATE USER paul WITH PASSWORD 'timeseries4days' WITH ALL PRIVILEGES
ERR: unable to parse Basic Auth credentials
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
所以,当使用我创建的数据库时:
USE example
ERR: unable to parse Basic Auth credentials
现在我不知道我究竟做了什么来设置我的身份验证以仅授予用户(在本例中为保罗)读取和写入我的数据库 example 的权力。
【问题讨论】:
标签: influxdb