E:\APP\influxdb-1.7.4-1>influx.exe Connected to http://localhost:8086 version 1.7.4 InfluxDB shell version: 1.7.4 Enter an InfluxQL query > show databases name: databases name ---- _internal > create database influx > show databases name: databases name ---- _internal influx > use database influx ERR: Database database influx doesn't exist. Run SHOW DATABASES for a list of existing databases. DB does not exist! > use influx Using database influx > create retention policy "influx_retention" on "influx" duration 30d replication 1 default > SHOW RETENTION POLICIES ON influxdb ERR: database not found: influxdb > SHOW RETENTION POLICIES ON influx name duration shardGroupDuration replicaN default ---- -------- ------------------ -------- ------- autogen 0s 168h0m0s 1 false influx_retention 720h0m0s 24h0m0s 1 true > ALTER RETENTION POLICY "influx_retention" ON influx DURATION 15d > SHOW RETENTION POLICIES ON influx name duration shardGroupDuration replicaN default ---- -------- ------------------ -------- ------- autogen 0s 168h0m0s 1 false influx_retention 360h0m0s 24h0m0s 1 true > DROP RETENTION POLICY "influx_retention" ON influx > SHOW RETENTION POLICIES ON influx name duration shardGroupDuration replicaN default ---- -------- ------------------ -------- ------- autogen 0s 168h0m0s 1 false > create retention policy "influx_retention" on "influx" duration 30d replication 1 default > show measurements > show measurements > use influx Using database influx > insert weather,altitude=1000,area=北 temperature=11,humidity=-4 > select * from weather name: weather time altitude area humidity temperature ---- -------- ---- -------- ----------- 1716383325010261300 1000 北 -4 11 > precision rfc3339 > select * from weather name: weather time altitude area humidity temperature ---- -------- ---- -------- ----------- 2024-05-22T13:08:45.0102613Z 1000 北 -4 11 > select * from weather name: weather time altitude area humidity temperature ---- -------- ---- -------- ----------- 2024-05-22T13:08:45.0102613Z 1000 北 -4 11 > insert tem,parm1=1 reult=1 > insert tem,parm1=2 reult=2 > insert tem,parm1=3 reult=3 > select * from tem name: tem time parm1 reult ---- ----- ----- 2024-05-22T13:14:14.4336263Z 1 1 2024-05-22T13:14:23.0149233Z 2 2 2024-05-22T13:14:29.7518358Z 3 3 > show users user admin ---- ----- > create user "fansea" with password 'fansea' > show users user admin ---- ----- fansea false > create user "admin" with password 'admin' with all privileges > show users user admin ---- ----- fansea false admin true > GRANT ALL PRIVILEGES ON influx TO fansea > show users user admin ---- ----- fansea false admin true > GRANT ALL PRIVILEGES ON influx TO admin >