> I have a problem with the installation of the JDBC driver for Mysql.
> I have Windows XP and Java2 SDK 1.4.01
> I tried to install the JDBC driver org.gjt.mm.mysql.Driver but every time
I
> try to connect to my database, I get a ClassNotFoundException:
> org.gjt.mm.mysql.Driver error, although I have put the org directory into
> the path of XP.
> I follow the installation notes very carefully but nothing happens.
> Does anyone know anything about this?
> Do you have a better driver to suggest?

You have not been very clear abput how you have done the installation.
However, what you say does not seem to me to match any of the possible
ways of installing the driver.

Firstly, the windows PATH variable is not relevant to java at all. Did you
mean
the CLASSPATH variable? If so, you would have to put the directory *above*
the org directory into the classpath, and compile the mm.mysql sources into
this directory, However, this is *not* the way that I would recommend to
install the driver.

There are two ways I would recommend to install the driver. One is to put
the
mm.mysql.jar file into your CLASSPATH. Not the directory, and not the
you-must-unjar-me file - the mm.mysql.jar file you find inside it. The
second,
which I prefer, is to copy the same file to the %JAVA_HOME%\jre\lib\ext
directory, where JAVA_HOME is the installation directory of the Java SDK -
possibly c:\j2sdk1.4.01 for you.

The mm.mysql driver is by far the most widely used JDBC driver for MySQL,
and is very reliable. I would reccoment that you get it to work fo you
and give it s good try before considering any other "better" driver.

      Alec Cawley




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to