Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change data storing location in Neo4j in Ubuntu

Tags:

neo4j

I have successfully installed neo4j with the port number 7474 and it works fine.

My problem is the data is stored into /var/lib/neo4j. This location in this directory is going to be full very soon. I want to change the data store location. How is this possible?

I have tried to edit the file /etc/neo4j/neo4j-server.properties in the line

org.neo4j.server.database.location=data/graph.db 

but it doesn't work.

like image 714
jai Avatar asked Jun 13 '14 09:06

jai


1 Answers

Try to use an absolute path for org.neo4j.server.database.location and make sure the directory is writable for the user running neo4j. An alternative is symlink your real graph.db folder to /var/lib/neo4j.

like image 72
Stefan Armbruster Avatar answered Sep 28 '22 05:09

Stefan Armbruster