gpt4 book ai didi

database - OrientDB 数据库导入失败

转载 作者:搜寻专家 更新时间:2023-10-30 23:41:37 24 4
gpt4 key购买 nike

我使用以下命令创建了一个 OrientDB 备份:

./backup.sh plocal:../databases/DemoDB demo demo demo.zip

现在,为了测试我的备份是否成功,我删除并重新创建了我的数据库,现在我正在使用控制台导入它:

IMPORT DATABASE "/Users/erik/databases/demo.zip"

我现在遇到以下错误:

Started import of database 'plocal:../databases/BestProgrammingBooks' from /Users/erik/databases/demo.zip...
Non merge mode (-merge=false): removing all default non security classes
Removed 0 classes.Error on database import happened just before line 299, column 444
java.lang.NumberFormatException: For input string: "22Vp"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at com.orientechnologies.orient.core.serialization.serializer.OJSONReader.nextChar(OJSONReader.java:273)
at com.orientechnologies.orient.core.serialization.serializer.OJSONReader.readNext(OJSONReader.java:174)
at com.orientechnologies.orient.core.serialization.serializer.OJSONReader.readString(OJSONReader.java:92)
at com.orientechnologies.orient.core.serialization.serializer.OJSONReader.readString(OJSONReader.java:87)
at com.orientechnologies.orient.core.serialization.serializer.OJSONReader.readString(OJSONReader.java:83)
at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:423)
at com.orientechnologies.orient.console.OConsoleDatabaseApp.importDatabase(OConsoleDatabaseApp.java:1711)
at com.orientechnologies.orient.graph.console.OGremlinConsole.importDatabase(OGremlinConsole.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:392)
at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:253)
at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:142)
at com.orientechnologies.orient.graph.console.OGremlinConsole.main(OGremlinConsole.java:64)

Error: com.orientechnologies.orient.core.db.tool.ODatabaseExportException: Error on importing database 'BestProgrammingBooks' from file: /Users/erik/databases/demo.zip
Error: java.lang.NumberFormatException: For input string: "22Vp

她怎么了,我该如何解决??我在 Mac 上使用 OrientDB 2.1.5。

最佳答案

给定备份,恢复数据库的正确操作是 RESTORE,而不是 IMPORT。 IMPORT 是当您想要导入以前使用 EXPORT 命令导出的数据库时。

有关更多信息,请参阅:http://orientdb.com/docs/2.0/orientdb.wiki/Backup-and-Restore.html

关于database - OrientDB 数据库导入失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34434378/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com