![]() ![]() In your case it would look like this: "jdbc:derby://localhost:1527/TESTE create=true"īy default, the bank is created where the bank service started, it would be interesting if you specify the location where the bank was created, then you can either replicate it or edit it with some other program. Without this parameter, if the database does not exist, java will throw an exception itself. If the database has not yet been created, try adding create=true to the end of the connection url, so the database will create if it does not already exist. the driver may not be loading properly.Now you're giving the error securing after adding the ex.printStackTrace () : : No suitable driver found for jdbc:derby://localhost:1527/TESTEĪt (DriverManager.java:689)Īt (DriverManager.java:247)Īt (JavaData.java:25)Īccording to this post on SOEn, the problem can be two: Statement sql = conn.createStatement() PARAMETROS("jdbc:derby://host:port//DB user=? password=?") Ĭonn = DriverManager.getConnection("jdbc:derby://localhost:1527/TESTE","root","root") ![]() I created the connection string below that I should connect to the TEST Bank, but with the code below I can not connect. I created a database using the javadb netbeans derby, then created a connection on port 1527 with the name of the Bank being TEST. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |