Cypher Neo4j Couldn't load the external resource

前端 未结 15 2062
谎友^
谎友^ 2021-02-07 05:09

In a Windows environment, I\'m trying to load a .csv file with statement:

LOAD CSV WITH HEADERS FROM \"file:///E:/Neo4j/customers.csv\" AS row

15条回答
  •  面向向阳花
    2021-02-07 05:28

    You can find the answer in the file

    "C:\Users\Jack\AppData\Roaming\Neo4j Community Edition\neo4j.conf"
    

    (above "dbms.directories.import=import")

    For version neo4j-community_windows-x64_3_1_1 you have to comment out this line or you have to create the folder \import (which isn´t created through the installation) and add your file into the folder.


    There it´s written that due to security reasons they only allow file load from the \Documents\Neo4j\default.graphdb\import folder

    After commenting out on # dbms.directories.import=import , you can execute e.g. from

    LOAD CSV FROM "file:///C:/Users/Jack/Documents/products.csv" AS row 
    

    In neo4j.conf I didn´t have to add/set

    dbms.security.allow_csv_import_from_file_urls=true
    

提交回复
热议问题