Neo4j - read and save data

人走茶凉 提交于 2019-12-12 02:55:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!