Connecting to databases You connect to a database using a form of the connection URL as an argument to the DriverManager.getConnection call.

You specify a path to the database within this connection URL.