So basically i want to export a database from influxdb to csv format in command line.
I type this command in the command line:
influx -database 'RoadMonitoringDB' -execute 'select * from vehicle' -format 'csv' > test.csv
It supposed to correctly export it into csv file, but what i get now is this:
unknown arguments: * from vehicle' -format 'csv'
What went wrong here? Because when i type influx -help, the command should be like this:
influx -database 'metrics' -execute 'select * from cpu' -format 'json' -pretty
Any answers is really helpful. Thank you in advance :)