Sortinbg DriverManager
try
{
Properties prop = new Properties();
prop.setProperty("user","root");
prop.setProperty("password","secret");
try
{
Class.forName(
"com.mysql.jdbc.Driver");
}
catch (Exception e)
{
System.out.println(e.toString());
}
Connection conn =
DriverManager.getConnection
("jdbc:mysql//localhost:3306",
prop);
System.out.println("Got Connection");
It runs through this but the Connection line causes an exception still. I'm not sure it should be pointing to something on my machine?
sorry.

