> madhura wrote on 15.12.2007 03:26:
>> Hi,
[quoted text clipped - 5 lines]
>
> http://dev.mysql.com/doc/refman/5.0/en/connector-j-usagenotes-basic.html
T
Madhura - take note that you're aiming for the wrong driver. You want
com.mysql.jdbc.Driver.

Signature
Lew
Arne Vajhøj - 15 Dec 2007 18:23 GMT
>> madhura wrote on 15.12.2007 03:26:
>>> I am trying to connect to a remote MySQL database using Java. I used
[quoted text clipped - 6 lines]
> Madhura - take note that you're aiming for the wrong driver. You want
> com.mysql.jdbc.Driver.
org.gjt.mm.mysql.Driver was the original MySQL JDBC driver developed
by Mark Matthews in 1998.
In 2002 he joined MySQL and the driver became the basis for
the official MySQL JDBC driver.
A lot of documentation still refer to the old driver name.
And it still works - even new distributions from MySQL
has:
package org.gjt.mm.mysql;
import java.sql.SQLException;
public class Driver extends com.mysql.jdbc.Driver {
public Driver() throws SQLException {
super();
}
}
I think using com.mysql.jdbc.Driver would be the nicest
code (after all then MySQL may someday remove that old
name), but functionally there will not be a difference.
Arne
Thomas Kellerer - 15 Dec 2007 19:04 GMT
Lew wrote on 15.12.2007 18:56:
>> madhura wrote on 15.12.2007 03:26:
>>> Hi,
[quoted text clipped - 9 lines]
> Madhura - take note that you're aiming for the wrong driver. You want
> com.mysql.jdbc.Driver.
Which is well documented in the manual