Creating a connection without specifying attributes Attributes to database connection URL

If no attributes are specified, you must specify a databaseName.

opens a connection to an existing database with that name in the current system directory. If the database does not exist, the connection attempt returns an SQLException indicating that the database cannot be found.

jdbc:derby:mydb