Reputation: 51
I am new to neo4j and I have downloaded its community version on my mac. I would like to use the neo4j-import command to import a csv file. I found on the documentation of Neo4j that I should write on the command line the following: neo4j-import --into path_to_target_directory --nodes movies4-header.csv
I am just wondering, can anybody tell me what should be the path_to_target_directory? I mean is it in the /bin folder of the community file that i unzipped or is it in the data folder?
Your help will be much appreciated :)
Upvotes: 4
Views: 1540
Reputation: 7790
You can put it anywhere, but I'd put it into the data/graph.db
directory. Assuming you don't have anything important in your data/graph.db
directory:
rm -rf data/graph.db
./bin/neo4j-import --into data/graph.db --nodes movies4-header.csv
Then start neo4j and you'll be starting data/graph.db
by default, assuming you haven't changed any of your config:
./bin/neo4j start
Upvotes: 2