Du måste instansiera drivrutinen innan du anropar getConnection:
String pdriver = "com.mysql.jdbc.Driver";
Class.forName(pdriver).newInstance();
Du måste instansiera drivrutinen innan du anropar getConnection:
String pdriver = "com.mysql.jdbc.Driver";
Class.forName(pdriver).newInstance();