JavaDB ( derby ) path to database?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 09:37:54

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/3231614/javadb-derby-path-to-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!