我知道我们可以使用
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'
.它们都不能起作用......
你会在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应允许从系统中的任何位置加载文件
归档时间: |
|
查看次数: |
418 次 |
最近记录: |