Cypher Neo4j Couldn't load the external resource

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

    The easiest way (be ware of security) is to serve you directory over http and use the http import

    • in the command line go the folder where csv files are lcoated
    • run the following depending on your python env.

    Python 2 $ python -m SimpleHTTPServer 8000 Python 3 $ python3 -m http.server 8000 - Now you can load your files from your local host LOAD CSV FROM 'http://localhost:8000/mycsvfile.csv' AS row return row - you can actually expose files on one host and load them where your DB is running by exposing the folder and replacing localhost with your IP

提交回复
热议问题