In the following way the JDBC Connections occurs: //STEP 1: Register JDBC driver Class.forName("com.mysql.jdbc.Driver"); //STEP 2: Open a connection conn = DriverManager.getConnection(DB_URL, USER, PASS);