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");
/* here i'm connecting to server at localhost, database name is hop,
with user root and password my_pass */
//after that i do something like
Statement s = C.createStatement();
s.execute("insert into loki values('holms', '324')");
you can see i'm using mm.mysql driver (it's type 4 too). It's GPL'ed too :)
There is a link to the mm.mysql driver somewhere on the mysql.com. This is the
only driver i've used but maybe i'll try twz1jdbcForMysql too. Is it free(i
mean GPL or something like that)?
hope that helps
javor
On Thu, 19 Jun 2036, Rakesh Raveendran wrote:
> 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 connect. Iam
> using twz1jdbcForMysql driver.
>
> regards,
> Rakesh
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]