neo4j控制台如何指定现有数据库的本地路径? [英] neo4j console how to specify local path of existing db?

查看:1035
本文介绍了neo4j控制台如何指定现有数据库的本地路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在路径中使用Neo4j Desktop创建了一个图形数据库

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

path/neo4jDatabases/database-abc/installation-3.5.5

在另一个路径中,我有neo4j-community-3.5.5文件夹(我在OSX上).我正在尝试使用neo4j-community启动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.

我正在尝试以下命令:

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

,但是启动的数据库使用的是neo4j-community-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.

如何使用现有数据库(由Neo4j Desktop创建)的路径启动neo4j-community?

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

推荐答案

对于neo4j命令,path自变量不存在. 如果要更改社区服务器的数据文件夹位置,则需要通过指定dbms.directories.data属性来修改社区服务器(conf/neo4j.conf)的配置:

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

干杯.

这篇关于neo4j控制台如何指定现有数据库的本地路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆