hi
i setup s MySQL server and connected to it a few days ago so i'm not
experienced SQLer too :)
here is how i connect to the server:
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
Connection C =
DriverManager.getConnection("jdbc:mysql://localhost/hop?user=root&password=my_pass");
er, this.password);
}
catch(Exception e2)
{
this.errors.add(new String("Unable to get connection to database: " +
e2.toString()));
}
}
> -Original Message-
> From: Rakesh Raveendran [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 13, 2000 11:59 AM
>
Hi,
I am using a type 4 driver for connecting to MySQL database.The Class
file(driver file) is being detected, but I am not able to connect to the
database.There are no exceptions being thrown stating that connection is not
being created.Can any body send me some sample code as to how to connec