neo4j console how to specify local path of existing db?

♀尐吖头ヾ 提交于 2019-12-24 19:15:55

问题


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)?


回答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.



来源:https://stackoverflow.com/questions/56700718/neo4j-console-how-to-specify-local-path-of-existing-db

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