在neo4j中使用LOAD CSV时如何加载外部文件?

L.L*_*Leo 3 csv neo4j

我知道我们可以使用

LOAD CSV WITH HEADERS FROM 'file:///nodes.csv' AS row
Run Code Online (Sandbox Code Playgroud)

在Neo4j中,但似乎默认文件夹是当前Neo4j DB下的导入目录.如果数据库位于磁盘D下,如何使用LOAD CSV(在Windows上)在磁盘E下加载csv文件?我曾尝试'file:///e:/XXX.csv','file:e:/xxx.csv'.它们都不能起作用......

Lua*_*nne 5

你会在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
Run Code Online (Sandbox Code Playgroud)

如果您删除此/注释它,Neo4j应允许从系统中的任何位置加载文件