1

我无法在 Windows 10 上从 Neo4j Desktop 转储数据库。我使用的是 OpenJDK 11、Neo4j Desktop v1.4.11,数据库版本是 v4.4.2。

从我在其他帖子中看到的情况来看,这在 Linux/Mac 上运行良好,但在 Windows 上却不行。此外,由于这是使用 Neo4j 桌面界面,我无法控制路径名。

我在桌面日志文件中得到的错误是:

[error] Selecting JVM - Version:11.0.8+10-LTS, Name:OpenJDK 64-Bit Server VM, Vendor:Azul Systems, Inc.
java.nio.file.InvalidPathException: Illegal char <:> at index 143: C:\Users\Glen Rutherford\AppData\Local\Neo4j\Relate\Data\projects\project-808d9e7f-36da-4a8e-a49e-7036d2129eb2\dev-strategy-neo4j-7-Jan-2022-12:29:54.dump
    at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
    at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
    at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
    at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
    at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
    at java.base/java.nio.file.Path.of(Path.java:147)
    at org.neo4j.commandline.dbms.DumpCommand.openDumpStream(DumpCommand.java:142)
    at org.neo4j.commandline.dbms.DumpCommand.dump(DumpCommand.java:154)
    at org.neo4j.commandline.dbms.DumpCommand.execute(DumpCommand.java:115)
    at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:71)
    at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:34)
    at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
    at picocli.CommandLine.access$1300(CommandLine.java:145)
    at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
    at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
    at picocli.CommandLine.execute(CommandLine.java:2078)
    at org.neo4j.cli.AdminTool.execute(AdminTool.java:93)
    at org.neo4j.cli.AdminTool.main(AdminTool.java:79)
4

1 回答 1

0

在 Windows 中打开命令提示符并转到本地 neo4j 数据库目录。然后运行以下命令:

.\bin\neo4j-admin.bat dump --database=graph.db --to=c:\tmp\graph.dump
于 2022-01-07T17:45:48.557 回答