0

Suppose I have a graph database created with Neo4j Desktop in the path

path/neo4jDatabases/database-abc/installation-3.5.5

In a different path I have the neo4j-community-3.5.5 folder (I am on OSX). I am trying to start the path/neo4jDatabases/database-abc/installation-3.5.5 database with neo4j-community.

I am trying this command:

sudo ./bin/neo4j console -path path/neo4jDatabases/database-abc/installation-3.5.5

but the started database is using the directories of neo4j-community-3.5.5 instead of the ones specified in the path.

How can I start neo4j-community using the path of an existing db (created with Neo4j Desktop)?

roschach
  • 8,390
  • 14
  • 74
  • 124

1 Answers1

1

The path argument doesn't exist for the command neo4j. If you want to change the data folder location of your community server, you need to modify the configuration of your community server (the conf/neo4j.conf) by specifying the dbms.directories.data property :

dbms.directories.data=path/neo4jDatabases/database-abc/installation-3.5.5/data

Cheers.

logisima
  • 7,340
  • 1
  • 18
  • 31
  • Suppose I want to run 2 db at different ports at the same time. The stupid solution would be to duplicate the `neo4j-community-3.5.5` folder and set different properties. Is there a smarter solution? – roschach Jun 21 '19 at 09:52
  • For the moment, you don't have other solutions. In the next major version, Neo4j will be multi-tenant. – logisima Jun 21 '19 at 09:54
  • Should I change `dbms.directories.active_database` to `path/neo4jDatabases/database-abc/installation-3.5.5/data/databases/graph.db` too or being inside `data` folder it's automatically changed?? – roschach Jun 21 '19 at 10:25
  • for the `active_database` do nothing ! (except if you want to change the name of the `graph.db` folder) – logisima Jun 21 '19 at 11:22