1. 首先需要暂停neo4j服务才可以导出文件
neo4j stop
2. 在neo4j安装目录下的bin文件中打开cmd
3.不同版本的导入命令不一样!网上基本上给的是4.0版本以下的,命令如下
neo4j-admin dump --database=neo4j --to=D:/Backup_graphData/xxxx.db.dump
–database= 需要导出的数据库名称
–to= 保存文件的路径
4.目前neo4j已经更新到5.0版本了,新版本的导出命令如下
neo4j-admin database dump --to-path="D:/test/" neo4j
--to-path 保存文件的路径
neo4j 数据库名字
可以查看命令的具体参数信息
neo4j-admin database dump [-h] [--expand-commands] [--verbose] [--overwrite-destination[=true|false]]
[--additional-config=<file>] [--to-path=<path> | --to-stdout] <database>
DESCRIPTION
Dump a database into a single-file archive. The archive can be used by the load command. <to-path> should be a
directory (in which case a file called <database>.dump will be created),