Sean Mackesey
Sean Mackesey

Reputation: 10939

Cannot Access Database Created with Neo4j Embedded Server on Neo4j Standalone Server

What could be the problem?

Upvotes: 0

Views: 552

Answers (1)

Pieter-Jan
Pieter-Jan

Reputation: 1685

I suspect the problem is an issue with relative/absolute paths, meaning you might think it points to the right directory but actually it created an empty database somewhere else. If that's the case, just change your directory settings. As a temporary fix, you can always keep the default settings and just copy your embedded db into the data/graph.db folder. That always works for me.

Checking your path, the thing you need to look for is a leading slash. A leading slash indicates an absolute path, whereas the lack of one indicates a path relative to the main server directory which is the directory that contains conf, bin, data, ... Also, if you typed in the line yourself, check for typos. The correct syntax is:

org.neo4j.server.database.location=/this/is/an/absolute/path

or else this :

org.neo4j.server.database.location=this/is/a/relative/path

Upvotes: 2

Related Questions