InfluxDB - create database via CURL command is failing

Viewed 292

I'm trying to setup InfluxDB from Docker image. I was able to spin-up InfluxDB but not able to create database using following CURl command.

CURl command

curl -i -XPOST http://localhost:8086/query --header "Authorization: Token MY_INFLUX_TOKEN" --data-urlencode "q=CREATE DATABASE selenium"

Error

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 18 Aug 2021 17:41:43 GMT
Content-Length: 76

{"results":[{"statement_id":0,"error":"not implemented: CREATE DATABASE"}]}

How to resolve this error?

0 Answers
Related