INFLUXDB Basic Operation

Source: Internet
Author: User
Tags influxdb

Entering the CLI interface Influxdb Shell (CLI)

/opt/influxdb/influx

Database

Show all Databases show DATABASES

Adding databases CREATE database MyDB

Deleting a database Drop DB mydb

User

Show all user Show Users

Creating user Create users Leo with PASSWORD ' admin '

Modify User (password) SET PASSWORD for Leo = ' admin '

Delete users drop user Leo

Data retention Period

View retention period show RETENTION policies on MyDB

Modify the retention period ALTER RETENTION POLICY default on MyDB DURATION 2d

Delete retention period Drop RETENTION POLICY <retentionpolicy> on <database>

Database access Permissions

Create Permissions GRANT READ on MyDB to Leo

Revoke permissions REVOKE all on MyDB from Leo administrative permissions

Create cluster administrative permissions GRANT all privileges to Leo

Revoke cluster administrative permissions REVOKE all privileges from Leo

Identity verification

Identity authentication by default, identity authentication is turned off. In other words, you can access the database without using your account and password. You need to use a configuration file to configure

Configuration file

The default configuration file is persisted:/etc/opt/influxdb/influxdb.conf

To restart after modifying the configuration

Restart

/etc/init.d/influxdb restart

Resources

Https://influxdb.com/docs/v0.9/administration/administration.html

INFLUXDB Basic Operation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.