List:MySQL and Java« Previous MessageNext Message »
From:Christian Mack Date:July 15 1999 8:02pm
Subject:Re: java(jdk1.2 for linux) - mysql
View as plain text  
"Geocrawler.com" wrote:
> 
> This message was sent from Geocrawler.com by "Shin Hyunil"
> <coolrock@stripped>
> Be sure to reply to that address.
> 
> 
> Hi.
> I'm Korean boy..
> I test JDBC with mysql and java2.0(jdk1.2).
> Driver is twz1(ver 1.0.4).
> 
> My source ::
> ---------------------------------------------------------------------
> import java.sql.* ;
>         public class test1
>         {
>             public static void main(String [] argv)
>             {
>                 Connection con ;
>                 try {
>                     Class.forName("twz1.jdbc.mysql.jdbcMysqlDriver");
>                     System.out.println("Loading driver.....");
> 
>                 }
>                 catch(Exception e){System.out.println(e);}
> 
>                 try
>                 {
>                     String url = "jdbc:mysql://202.31.137.227:3306/test";
< cut >

Hi Shin

The url is wrong for twz driver.
It has to be:
                    String url = "jdbc:z1MySQL://202.31.137.227:3306/test";

Because of a known bug in some VMs I would suggest to use:
                    Class.forName("twz1.jdbc.mysql.jdbcMysqlDriver").newInstance();



Tschau
Christian

PS: Sorry for the late answer, I was on vacation.

Thread
java(jdk1.2 for linux) - mysqlGeocrawler.com5 Jul
  • Re: java(jdk1.2 for linux) - mysqlChristian Mack16 Jul