File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes problem setting up mm.mysql driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "problem setting up mm.mysql driver" Watch "problem setting up mm.mysql driver" New topic

problem setting up mm.mysql driver

Lucy Smaile
Ranch Hand

Joined: Apr 17, 2002
Posts: 45
I've been trying to follow the Cattle Drive jdbc tutorial, but i'm stuck on installing mm.mysql.
I downloaded mm.mysql-
The tutorial says "Do not unjar the file - you're going to just mash that into your class path. "
Then it tells you to cut and paste the program that uses it.
I just put the .jar file in the same directory, but it throws an exception:
"could not load JDBC driver: java.lang.ClassNotFoundException:"
Can anyone help?
Lucy Smaile
Ranch Hand

Joined: Apr 17, 2002
Posts: 45
I guess it's a class path problem. I tried to do one of the thing the Release Notes suggests - putting
but that didn't work.
Strangly, the error message changes, but only when I run the prog from Textpad, not from the command line. But it's still an error:
could not get JDBC connection: java.sql.SQLException: Cannot connect to MySQL se
rver on localhost:3306. Is there a MySQL server running on the machine/port you
are trying to connect to? (

Please could anyone help with the right way to do it?
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
For my experience I used this version(mm.mysql-2.0.11-you-must-unjar-me.jar) and I unjar it and get mm.mysql-2.0.11-bin.jar and just put it in
C:\Tomcat323\webapps\bugtrack\WEB-INF\lib (that is my path eventually should go to lib) where the jar files should go and it is working I hope it works for you too...

Lucy Smaile
Ranch Hand

Joined: Apr 17, 2002
Posts: 45
Thanks, but hmm, I haven't got Tomcat yet (doing things one thing at a time...) Can you install Tomcat without Apache, or do you have to have all the works?
What exactly do you actually need to do servlets? How complicated is Tomcat installation?
Thanks in advance!
I agree. Here's the link:
subject: problem setting up mm.mysql driver
It's not a secret anymore!