Problems with connecting JavaDB; database not found

I have a problem with Java DB, I just don't know how to solve it. I create a database and connect to it using the Java DB JDBC driver. If I physically move this database and try to connect to it using my new path, I get XJ004 errors in sequence:

ERROR XJ004: Database 'blahblah' not found.

I am sure I am using the correct connection string. Is there any chance that the database is somehow damaged? Or is there some encoding of the DB path in the database, so if you move Java DB, is this confusing?

I am really at a loss. :( Please help!

Jim

+3
source share
3 answers

, , ... JavaDB ? ( JavaDB) , localhost . PostgreSQL, , TCP- .

... , , , , ! ( , ?)

+1

, createFrom=Path .

.

0

There should be a file with a name derby.log. Check there error. If it is not verbose enough, try setting it derby.stream.error.logSeverityLevelto a lower value. See the manual for more details .

0
source

Source: https://habr.com/ru/post/1705893/


All Articles