how to get databases list at influxdb in v0.8

廖前程 picture 廖前程 · Dec 8, 2015 · Viewed 13.2k times · Source

how to get all databases use http api from influxdb in v0.8?

but I can use this query in v0.9:

curl -G http://localhost:8086/query --data-urlencode "u=todd"  \
--data-urlencode "p=influxdb4ever" --data-urlencode "q=SHOW DATABASES"

I can't get any info on influxdb.com

thx

Answer

Vivit picture Vivit · Apr 18, 2017

I can get the database list using this statement: curl -G "http://somehost:8086/query?pretty=true" --data-urlencode "q=show databases" My InfluxDB version is 1.2.2