cp -f data/*.csv ${NEO4J_IMPORT}/
cd "${NEO4J_HOME}"
time bin/cypher-shell < $tmp_dir/create_graph.cypher我看到了一个创建neo4j数据库的脚本,但遇到了一个问题:
cp: /person.csv: Read-only file system
Connection refused我在Mac上,可以回显NEO4J_HOME变量,但不能回显NEO4J_IMPORT。在使用cypher- NEO4J_IMPORT创建图形时,我应该设置自己的环境变量吗?如果必须设置NEO4J_IMPORT环境变量,应在何处设置该变量?
发布于 2020-02-27 02:00:06
NEO4J_IMPORT不需要在环境中。
可能neo4j实例已关闭、正在运行或正在非标准端口上运行。试试这个吧。在neo4j主路径中,并确保文件具有足够的权限。
cat query.cypher | bin/cypher-shell -u neo4j -p neo4j -a localhost:7687 --format plainhttps://neo4j.com/docs/operations-manual/3.5/tools/cypher-shell/#cypher-shell-syntax
https://stackoverflow.com/questions/60419356
复制相似问题