OscarRyz
OscarRyz

Reputation: 199215

JavaDB ( derby ) path to database?

Using the embedded driver I can connect to my derby database using the JDBC url:

jdbc:derby:mydbname

But, I usually put the full path for the db like:

jdbc:derby:/Users/oreyes/dbs/mydbname

Is there a way I can just specify the db name and have something like a "db_path" or something like that?

Upvotes: 3

Views: 8341

Answers (1)

stacker
stacker

Reputation: 68962

I'm not an expert with derby, setting derby.system.home as described in developers guide seems to work as you expect.

Upvotes: 3

Related Questions