简体   繁体   English

找不到Java数据库

[英]java database not found

He tells me not find the database, but the database is located in that directory. 他告诉我找不到数据库,但是数据库位于该目录中。 How do I solve the problem? 我该如何解决这个问题?

String driver = "org.apache.derby.jdbc.EmbeddedDriver";
Class.forName(driver);
String url = "jdbc:derby:C/Users/Calogero/workspace/CDStore/DB_CD_STORE";

Have you checked your database is created or not? 您是否检查数据库是否已创建? for the URl could you please use as below 对于URl,请您按以下方式使用

jdbc:derby:C/Users/Calogero/workspace/CDStore/DB_CD_STORE;create=true

for more help please have a Look 如需更多帮助,请看看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM