Search code examples
sqldatabasederby

Another instance of Derby may have already booted the database


I'm connecting to a Derby DB through the command line. After connecting, by mistake got out from IJ in a unproper way. Now when I try to connect again this message is shown:

enter image description here

I think this is happening because i didn't close the connection properly. So I made both "disconnect all;" and "disconnect current;" but still the message is shown when i try to connect.

I made a "show connections;" to see if there're another "instances" but it says "No connections available".

So tell me how to solve this problem, what can I try to do?


Solution

  • Well,

    The problem was solved by deleting the files with extension *.lck from the directory where the DB lives. I deleted the temp directory too but I'm not sure if this was part of the solution.