Answers for "influx db add measurement"

0

influx db add measurement

create database <data base name of your choice>

create user "<username>" with password '<password>'

To see the all databases:  SHOW DATABASES

Enter the Database: use <database name>

To see all tables inside the database: SHOW MEASUREMENTS

grant all on <data base name> to <username>

insert data (Here Motionsense is a Measurement which is similar to the table 
name of SQL): INSERT MotionSense,SensorType=Gyro roll=1.2,yaw=5,pitch=3

See the data of the Measurements: SELECT * FROM "MotionSense"
Posted by: Guest on May-13-2021

Browse Popular Code Answers by Language