我正在尝试使用influxdb-rubygem 连接到influxdb 。
与:
influx -username admin -password secret > SHOW DATABASES; name: databases --------------- name _internal metrics
工作良好。
但是,如果我尝试使用Ruby:
client = InfluxDB::Client.new(host: "host", port: 8086, database: "metrics", user:"admin", password: "secret") client.list_databases InfluxDB::AuthenticationError: {"error":"authorization failed"}
这里有什么建议吗?
提前致谢