Java Apache Derby数据库恢复错误

时间:2013-03-27 00:20:49

标签: apache jpa

我正在使用Netbeans& amp;和我开发一个JSF + JPA应用程序。 JavaDB之外。我按照this link中的说明在数据库脱机时复制了整个数据库文件夹。当我将特定数据库子文件夹复制到另一个derby位置或将整个数据库文件夹作为Netbeans Java数据库中的新Java数据库位置时,会出现以下错误。

Unable to connect. Cannot establish a connection to jdbc:derby://localhost:1527/hr using org.apache.derby.jdbc.ClientDriver(DERBY SQL error:SQLCODE: -1, SQLSTATE:XJ040, SQLERRMC:Failed to start database 'hr', see the next exception for details.:SQLSTATE:XSLANDatabase at D:\Data\PDHS\hr has an incompatible format with the current version of the software. The Database was created by or upgraded by version 10.8.).

如何解决此错误。

提前致谢。

1 个答案:

答案 0 :(得分:1)

消息说:

The Database was created by or upgraded by version 10.8.

服务器正在运行什么版本的Derby?