How to explore databases created by an embedded-Neo4j Java application and stored outside the /data directory?

为君一笑 提交于 2019-12-12 17:05:09

问题


In the Neo4j web administration tool (http://127.0.0.1:7474/webadmin/), I can only explore nodes and relationships created through this interface.

However, it doesn't show databases created by my Java applications which use embedded Neo4j and store databases outside the /data directory. How can I explore these databases?


回答1:


The Webadmin talked to the neo4j server instance. You can configure it using config/neo4j-server.properties, see http://docs.neo4j.org/chunked/snapshot/server-configuration.html




回答2:


This question has got the right answer already but I ran into a silly problems so I'm posting this as a heads-up for other beginners.

An obvious thing to check is if you import the same version of Neo4j packages in your java code as the server you want to start. Opening a db created with a newer neo4j than the server may cause problems.

In console.log I was getting

"Setting startup timeout to: 120000ms based on -1 Detected incorrectly shut down database, performing recovery.."

and I could only debug the issue from data/graph.db/messages.log .



来源:https://stackoverflow.com/questions/14057897/how-to-explore-databases-created-by-an-embedded-neo4j-java-application-and-store

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