我使用以下代码
创建了一个加密数据库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.
任何帮助将不胜感激:-)谢谢