7
votes

I am using the Neo4j Import Tool to import large datasets to my existing graph. When importing .csv data to my graph i get

Directory '...' already contains a database.

Github suggests the following solution:

"If you see Input error: Directory 'neo4j-community-
3.0.3/data/databases/graph.db' already contains a database, delete the 
graph.db directory and try again."

So I have to delete my graph and a new one will be created. I tryed - it works.

But how can I add Data to an existing database, so without deleting mine?

Thanks!

1

1 Answers

8
votes

Import tool is only for newly created databases.

You can use LOAD CSV cypher command to load into an existing database. Other tricks are here: https://neo4j.com/developer/guide-import-csv/