I can use jdbc:postgresql://host:port/database
to connect to a database in postgresql server using jdbc driver.
But I wanted to connect to the postgresql server and find the database list there. when I used jdbc:postgresql://localhost:5432
, I got an exception called
java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost:5432
is there any other driver or any method to get a connection to the server without knowing the database names in server and query the database list there?