加密的Derby数据库无法使用正确的启动密码启动

时间:2013-07-12 14:57:33

标签: java database derby

我使用以下代码

创建了一个加密数据库
connection = DriverManager.getConnection("jdbc:derby://localhost:1527/DatabaseTest;create=true;dataEncryption=true;bootPassword=dhuf83@f9$");

系统重启后,我现在无法访问它。这是连接代码:

connection = DriverManager.getConnection("jdbc:derby://localhost:1527/DatabaseTest;bootPassword=dhuf83@f9$");

我得到的错误是:

java.sql.SQLException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ040, SQLERRMC: Failed to start database 'DatabaseTest', see the next exception for details.::SQLSTATE: XBM06Startup failed. An encrypted database cannot be accessed without the correct boot password.

任何帮助将不胜感激:-)谢谢

0 个答案:

没有答案