~/ learn/ java-from-zero/ cards/ JDBC
1 of 15

Type a DriverManager.getConnection call

Type a DriverManager.getConnection call

Answer

Connection conn = DriverManager.getConnection( "jdbc:postgresql://localhost:5432/mydb", "alice", "s3cret");

The JDBC URL identifies the driver (postgresql), host, port, and database. DriverManager finds the matching Driver implementation from the jars on the classpath.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/8fa37489-d406-4464-b339-c068afe9014a/flashcard utf-8 LF