01-InfluxDB介绍请添加链接描述
创新互联是由多位在大型网络公司、广告设计公司的优秀设计人员和策划人员组成的一个具有丰富经验的团队,其中包括网站策划、网页美工、网站程序员、网页设计师、平面广告设计师、网络营销人员及形象策划。承接:成都做网站、网站设计、外贸营销网站建设、网站改版、网页设计制作、网站建设与维护、网络推广、数据库开发,以高性价比制作企业网站、行业门户平台等全方位的服务。
02-influxdb的权限管理
其实influxdb的权限语法和MySQL基本相似,看完以后你基本就能了解;
授权语法
开启登录认证
vim /etc/influxdb/influxdb.conf
[http]
auth-enabled = true
[root@localhost tmp]# influx
Connected to http://localhost:8086 version 1.7.1
InfluxDB shell version: 1.7.1
Enter an InfluxQL query
> show databases
ERR: unable to parse authentication credentials
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
> auth
username: monitor
password:
> show databases
name: databases
name
----
_internal
zabbix
telegraf
chronograf
> quit
1.创建超级用户
创建用户:monitor
密码:zabbix
权限:全部权限(超级用户)
create user monitor with password 'zabbix' with all privileges
2.创建只读用户
用户:monitor_ro
数据库:monitordb
权限:指定数据库的只读权限
create user monitor_ro with password 'zabbix_apipwd'
grant read on monitordb to monitor_ro
3.创建可以写用户
用户:monitor_rw
数据库:monitordb
权限:指定数据库的写权限
create user monitor_rw with password 'zabbix_apipwd'
grant write on monitordb to monitor_rw
4.取消用户授权
取消用户授权:
REVOKE ALL PRIVILEGES FROM monitor_rw
5.查看所有用户
SHOW USERS
user adminmonitor true
monitor_ro false
monitor_rw false
6.删除用户
DROP USER monitor_rw
本文名称:02-influxdb的权限管理
转载源于:https://www.cdcxhl.com/article14/ieoide.html
成都网站建设公司_创新互联,为您提供静态网站、关键词优化、外贸网站建设、网站营销、网站维护、网站制作
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联