繁体   English   中英

无法在ubuntu机器上导入在Mac上创建的neo4j db-ubuntu上的neo4j.conf与Mac不同吗?

[英]failed importing a neo4j db, created on mac, in a ubuntu machine - is neo4j.conf on ubuntu different from mac?

我花了几个小时试图弄清楚为什么要设置绝对路径:

dbms.active_database = my_db/data/graph.db

neo4j.conf文件中

  • 它导致一个空的数据库。

事实证明,我在Mac上的笔记本电脑上创建的数据库没有名为“ graph.db ”的文件。 实际上,我无法找到哪个是db文件:请参见下面的文件夹结构。

我在ubuntu上看到的Mac上的配置文件没有任何“ dbms.active_database ”变量或“ dbms.directories.data ”。

我在Mac上填充的db的结构缺少文件“ graph.db”。

这是my_db文件夹结构:

certificates
data
index
logs
neostore
neostore.counts.db.a
neostore.counts.db.b
neostore.id
neostore.labeltokenstore.db
neostore.labeltokenstore.db.id
neostore.labeltokenstore.db.names
neostore.labeltokenstore.db.names.id
neostore.nodestore.db
neostore.nodestore.db.id
neostore.nodestore.db.labels
neostore.nodestore.db.labels.id
neostore.propertystore.db
neostore.propertystore.db.arrays
neostore.propertystore.db.arrays.id
neostore.propertystore.db.id
neostore.propertystore.db.index
neostore.propertystore.db.index.id
neostore.propertystore.db.index.keys
neostore.propertystore.db.index.keys.id
neostore.propertystore.db.strings
neostore.propertystore.db.strings.id
neostore.relationshipgroupstore.db
neostore.relationshipgroupstore.db.id
neostore.relationshipstore.db
neostore.relationshipstore.db.id
neostore.relationshiptypestore.db
neostore.relationshiptypestore.db.id
neostore.relationshiptypestore.db.names
neostore.relationshiptypestore.db.names.id
neostore.schemastore.db
neostore.schemastore.db.id
neostore.transaction.db.0
neostore.transaction.db.1
neostore.transaction.db.2
neostore.transaction.db.3
neostore.transaction.db.4
neostore.transaction.db.5
neostore.transaction.db.6
neostore.transaction.db.7
neostore.transaction.db.8
neostore.transaction.db.9
schema
store_lock

我想将其复制到ubuntu机器上的自定义文件夹中。 您能解释一下Mac和ubuntu的区别,以使其兼容吗? 我应该在新机器上再次创建数据库吗?

graph.db是一个文件夹。

根据文件列表,my_db等同于graph_db。 尝试重命名。

我发现neo4j默认在以下位置写入数据库:

/usr/share/neo4j

而不是:

/var/lib/neo4j/

正如在/etc/neo4j/neo4j.conf从注释行中建议的那样,并且也在此答案中建议: 在Ubuntu中更改Neo4j中的数据存储位置

dmbs.directories.data设置为/usr/share/neo4j/data对我/etc/neo4j/neo4j.conf

我在Debian,Ubuntu 16.04上使用neo4j 3.1.1。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM