Cypher Neo4j Couldn't load the external resource

前端 未结 15 1732
谎友^
谎友^ 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:43

    Use the following syntax:

    LOAD CSV WITH HEADERS FROM "file:///my_collection.csv" AS row CREATE (n:myCollection) SET n = row
    

    If you are running a docker then, follow these commands before running above query:

    docker run \
    -p=7474:7474 \
    -p=7687:7687 \
    -v=$HOME/neo4j/data:/data \
    -v=$HOME/neo4j/logs:/logs \
    -v=$HOME/local_import_dir:/var/lib/neo4j/import \
    neo4j:3.0
    

    Then,

    sudo cp my_collection.csv /home/bajju/local_import_dir/
    

提交回复
热议问题