Usman Mutawakil
Usman Mutawakil

Reputation: 5259

What do I use as the database path?

I have been searching through documentation on how to create nodes and the only example I find uses this approach

graphDB = new GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH );

What am I suppose to use for DB_PATH? The following link describes it as the data store directory http://api.neo4j.org/1.4/org/neo4j/kernel/EmbeddedGraphDatabase.html I've tried using "data/graph.db" given that is an actually directory holding what appears to be data files but that is still me just guessing.

Note:

I'm using Neo4j - 2.0.0-M03 the Java api

Upvotes: 1

Views: 176

Answers (1)

Usman Mutawakil
Usman Mutawakil

Reputation: 5259

DB_PATH is simply where you want the database to be stored on disk. What ever you set it to should match the following field

org.neo4j.server.database.location

inside the file

/conf/neo4j-server.properties

Having those two match will allow the WebAdmin application to find the correct DB. The WebAdmin application can be accessed at http://127.0.0.1:7474/webadmin

Upvotes: 2

Related Questions