问题
I've got problem with Neo4j.
First of all, I've got pieace of code:
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("neo4j-store");
// creating some nodes, relationships and commiting transactions
but I can't find that datas in: http://localhost.pl:7474/webadmin ... why?
And on the other hand. When I create some data via webadmin I can't read it from my java application. Why?
回答1:
The web console pulls from where the neo4j is installed/run from. So it's usually {neo4j.home}\data\graph.db
which your example there will create a DB at ./neo4j-store
. The easiest way to solve this is to set the org.neo4j.server.database.location
in the conf/neo4j-server.properties
file to point to where neo4j-store
is. For me check here
回答2:
Also, you can look at the webadmin configuration tab and look at the location of the database, and make sure your embedded program is using the same.
来源:https://stackoverflow.com/questions/16512032/neo4j-read-and-save-data