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");
Hope the code below helps. Also if you're using a new version of java (1.2
or above, I believe) make sure you're using the noopt version of the class
files.
try
{
Class.forName("twz1.jdbc.mysql.jdbcMysqlDriver").newInstance();
}
catch(Exception e)
{
this.err