db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendle...@amberpoint.com>
Subject Re: disappearing databases
Date Thu, 24 Sep 2009 20:42:59 GMT
> Is there some stupid newbie mistake that can cause your Derby databases to disappear?

A Derby database is just a filesystem directory, so if you accidentally
remove that directory, you have just removed your database.

Another common source of confusion is to use a relative filesystem name
for a database in your JDBC connection URL, and then change your
current working directory between runs, which causes the relative name
to resolve to a different physical directory, and thus your database
seems to disappear, although in fact it's still present, just in a
different directory than where you're looking.

Lastly, if you're using the brand-new "in-memory" database, then it automatically
disappears when you shut the Derby JVM down.



View raw message