参考:
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
网友评论