2016-06-22 130 views
3

我知道,我们可以使用如何在neo4j中使用LOAD CSV时加载外部文件?

LOAD CSV WITH HEADERS FROM 'file:///nodes.csv' AS row 
在Neo4j的

,但似乎默认文件夹是根据目前的Neo4j DB进口目录。如果数据库位于磁盘D下,如何使用LOAD CSV(在Windows上)将磁盘E下的csv文件加载?我试过,'file:e:/xxx.csv'。没有人能够工作的...

回答

4

如果删除此/发表评论它,你会发现在neo4j.conf这样

# This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or uncomment it to 
# allow files to be loaded from anywhere in filesystem; this introduces possible security problems. See the `LOAD CSV` 
# section of the manual for details. 
dbms.directories.import=import 

的设置,Neo4j的应该从系统中的任何地方

允许加载文件
+1

或者你可以设置该目录为任何你的来源 –

+0

它的工作原理!非常感谢! –

+0

欢迎您,请接受答案:-) – Luanne

相关问题