2021-05-06

Centos 导入neo4j数据graph.db.dump报错
org.neo4j.commandline.admin.CommandFailed: Not a valid Neo4j archive: /usr/local/software/api3/graph.db.dump
at org.neo4j.commandline.dbms.LoadCommand.load(LoadCommand.java:158)
at org.neo4j.commandline.dbms.LoadCommand.execute(LoadCommand.java:87)
at org.neo4j.commandline.admin.AdminTool.execute(AdminTool.java:127)
at org.neo4j.commandline.admin.AdminTool.main(AdminTool.java:51)
Caused by: org.neo4j.dbms.archive.IncorrectFormat: /usr/local/software/api3/graph.db.dump
at org.neo4j.dbms.archive.Loader.openArchiveIn(Loader.java:126)
at org.neo4j.dbms.archive.Loader.load(Loader.java:51)
at org.neo4j.commandline.dbms.LoadCommand.load(LoadCommand.java:133)
… 3 more
Caused by: java.io.IOException: Input is not in the .gz format
at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.init(GzipCompressorInputStream.java:185)
at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.(GzipCompressorInputStream.java:158)
at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.(GzipCompressorInputStream.java:123)
at org.neo4j.dbms.archive.Loader.openArchiveIn(Loader.java:121)
… 5 more
command failed: Not a valid Neo4j archive: /usr/local/software/api3/graph.db.dump

我的问题的是开始电脑使用的neo4j版本与后面我在服务器使用的版本不一样。版本切换成一样的就可以了

你可能感兴趣的:(neo4j,数据库)