Skip to content

Instantly share code, notes, and snippets.

@cj2001
Created September 17, 2021 19:51
Show Gist options
  • Save cj2001/9321ff16672921e1c197b67336f97f19 to your computer and use it in GitHub Desktop.
Save cj2001/9321ff16672921e1c197b67336f97f19 to your computer and use it in GitHub Desktop.
Using neo4j-admin tool to populate a database (with Docker)
docker run -v $HOME/graph_data/data:/data -v $HOME/graph_data/gameofthrones:/var/lib/neo4j/import neo4j:latest bin/neo4j-admin import --nodes=import/got-s1-nodes.csv --relationships=import/got-s1-edges.csv
&&
docker run -p7474:7474 -p7687:7687 -v $HOME/graph_data/data:/data -v $HOME/graph_data/gameofthrones:/var/lib/neo4j/import --env NEO4J_AUTH=neo4j/test neo4j:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment