如何将Cypher文件加载到Neo4j中 [英] How to Load Cypher File into Neo4j

查看:65
本文介绍了如何将Cypher文件加载到Neo4j中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经生成了一个密码文件,并希望将其加载到neo4j中.

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

我能找到的唯一相关文档是关于加载csv的文档.

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

我也尝试过shell,但似乎没有效果

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

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

将粘贴复制到localhost:7474/browser中会使浏览器无响应.

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

推荐答案

在当前的Neo4j版本中,您可以使用

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

从文档中,调用Cypher Shell从命令行使用Cypher脚本:

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

请注意,此示例基于Linux安装.如果要在Windows上使用Neo4j,则需要根据需要调整此命令.

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.

这篇关于如何将Cypher文件加载到Neo4j中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆