ERROR: open mydb_data.txt: no such file or directory

Hi everyone,

I’m new to InfluxDB and I’m trying to import data from the .txt file to my database . I copied the data from the sample data provided by the official page. I changed the name of database in the .txt file to make it match mydb. When I use the similar command it didn’t work:

$ influx -import -path=mydb_data.txt -precision=s -database=mydb

ERROR: open mydb_data.txt: no such file or directory

I don’t understand the reason. Any suggestion would be helpful to me.

Thank you.

Here is the data file.

Hi everyone,

I’m new to InfluxDB and I’m trying to import data from the .txt file to my
database . I copied the data from the sample data provided by the
official page. I changed the name of database in the .txt file to make it
match mydb. When I use the similar command it didn’t work:

$ influx -import -path=mydb_data.txt -precision=s -database=mydb

ERROR: open mydb_data.txt: no such file or directory

Try specifying an absolute path to the file.

Thank you. I think it worked. But another problem came out.

It showed that “error”:"unable to parse ‘h2o_feet,location=coyote_creek water_level=8.120,level\\ description=“between 6 and 9 feet” 1566000000\’: invalid field format.

But I did NOT change anything in the data. Is there anything wrong?

Great thanks again for your help.

Thank you. I found that I misused “”. Problem solved!