Open rwb196884 opened 2 years ago
OK, so influx-client
seems to be for v1 and is incompatible with package influxdb
which contains its own client which works completely differently -- and which won't connect at all.
How do you get the influx
command to do anything?
I just want to SHOW DATABASES
to prove that the thing is running and can be conencted to.
mini31 # influx ping
OK
mini31 # influx query 'SHOW DATABASES'
Error: must specify org ID or org name
You may have found an answer since, but have you configured the influx CLI ? You need to install it, then configure it with the following command :
influx config create --config-name <config-name> \
--host-url http://localhost:8086 \
--org <your-org> \
--token <your-auth-token> \
--active
More details here : https://docs.influxdata.com/influxdb/v2.6/tools/influx-cli/?t=Linux
If you want to see databases the way you put it, you can do :
influx v1 shell
show databases
v2 works differently
I also encountered the same problem. and i found my problem. before we get started we should Enable Authentication for influxDB.
nano /etc/influxdb/influxdb.conf
auth-enabled = true
systemctl restart influxdb
Just installed and it doesn't work.