簡體   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