How to Load Cypher File into Neo4j

…衆ロ難τιáo~ 提交于 2019-12-10 23:32:51

问题


I have generated a cypher file and want to load it into neo4j.

The only relevant documentation I could find was about loading csv's.

I also tried the shell but it seems to have no effect

cypher-shell.bat -uneo4j -pne04j < db.cql

Copy paste into localhost:7474/browser makes the browser unresponsive.


回答1:


In the current Neo4j version you can use Cypher Shell to achieve your goal.

From the docs, Invoke Cypher Shell with a Cypher script from the command line:

$ cat db.cql | bin/cypher-shell -u yourneo4juser -p yourpassword

Note that this example is based in a Linux instalation. If you are using Neo4j with Windows, you will need to adjust this command to your needs.



来源:https://stackoverflow.com/questions/43648512/how-to-load-cypher-file-into-neo4j

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!