This is a short post detailing the command you can use to create a new Influx DB database
Creating a new InfluxDB database
To quickly create a new InfluxDB database you can use curl.
If your database API is configured on localhost:8086 you can run the following command:
curl -i -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE room_measurements"
This talks to the InfluxDB and asks it to create a database
Once called you should get a response similar to this below.
HTTP/1.1 200 OK
Date: Sat, 28 Mar 2020 23:27:21 GMT
A response code of 200 suggests that the database has been created successfully.
Now this has been created you are free to start adding data to InfluxDB