美文网首页
neo4j之通过脚本实现cypher任务

neo4j之通过脚本实现cypher任务

作者: 王金松 | 来源:发表于2019-05-26 22:59 被阅读0次

参考:
https://neo4j.com/docs/operations-manual/current/tools/cypher-shell/

脚本

examples.cypher

MATCH (n) RETURN n;
MATCH (batman:Person {name: 'Bruce Wayne'}) RETURN batman;

通过脚本执行任务

$neo4j-home> cat examples.cypher | bin/cypher-shell -u neo4j -p secret --format plain

指定自定义的地址

addr=bolt://10.211.12.194:7687
cat $Es2Neo_bin/${filename}.cypher | /export/software/neo4j/bin/cypher-shell -a $addr -u $username -p $password --format plain

相关文章

网友评论

      本文标题:neo4j之通过脚本实现cypher任务

      本文链接:https://www.haomeiwen.com/subject/aioouqtx.html