Have installed influxdb and the cli from Ubuntu repo
However, unable to connect to the databases. When I type influx, I just get a list of the commands
root@SM-icxd-25-1-3:~# influx
NAME:
influx - Influx Client
USAGE:
influx [command]
COMMANDS:
version Print the influx CLI version
write Write points to InfluxDB
bucket Bucket management commands
completion Generates completion scripts
query Execute a Flux query
config Config management commands
org, organization Organization management commands
delete Delete points from InfluxDB
user User management commands
task Task management commands
telegrafs List Telegraf configuration(s). Subcommands manage Telegraf configurations.
dashboards List Dashboard(s).
export Export existing resources as a template
secret Secret management commands
v1 InfluxDB v1 management commands
auth, authorization Authorization management commands
apply Apply a template to manage resources
stacks List stack(s) and associated templates. Subcommands manage stacks.
template Summarize the provided template
bucket-schema Bucket schema management commands
ping Check the InfluxDB /health endpoint
setup Setup instance with initial user, org, bucket
backup Backup database
restore Restores a backup directory to InfluxDB
remote Remote connection management commands
replication Replication stream management commands
server-config Display server config
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
–help, -h show help
This is with the following version:
root@SM-icxd-25-1-3:~# influx version
Influx CLI 2.3.0 (git: 88ba346) build_date: 2022-04-06T19:30:53Z
My understanding is that it should connect to localhost:8086 and give a prompt. On another system I have with a earlier version of InfluxDB, this works as expected
root@silpixa00400863:~# influx
Connected to http://localhost:8086 version 1.8.9
InfluxDB shell version: 1.8.9
show databases
name: databases
name
_internal
collectd
telegraf
exit
The version here is 1.8.9
root@silpixa00400863:~# influx -version
InfluxDB shell version: 1.8.9
I would prefer not to have to use an earlier version, but I don’t see much option at the moment as I am unable to connect to and query the database.
Have I missed something?