查看InfluxDB Quick Start的源代码
←
InfluxDB Quick Start
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Auth == * [https://jasper-zhang1.gitbooks.io/influxdb/content/Query_language/authentication_and_authorization.html 认证和授权] * https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761 如果你在配置文件里开启了认证但是没有用户,那么 InfluxDB 将不会开启认证,只有当创建一个 admin 用户后,InfluxDB才能开启认证。。 在配置文件中,认证默认是不开启的。将 [http] 区域的配置 auth-enabled 设为 true,可以开启认证: <source lang=bash> [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" </source> <source lang=bash> #显示用户 > show users user admin ---- ----- root true # 显示用户的数据库权限 > show grants for root database privilege -------- --------- NOAA_water_database WRITE another_database_name READ # 授权 > grant all privileges to root > grant all on "db_name" to "root" > grant read on db_name to test # 撤回 > revoke all privileges from root > revoke write on db_name from test # 重新设置一个用户的密码 > set password for root = 'xxxx' #创建用户 > create user "username" with password 'password' #创建管理员权限用户 > create user "username" with password 'password' with all privileges #删除用户 > drop user "username" </source> <br>
返回到
InfluxDB Quick Start
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面