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 downloading mysql-connector-java-3.1.8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "downloading mysql-connector-java-3.1.8" Watch "downloading mysql-connector-java-3.1.8" New topic

downloading mysql-connector-java-3.1.8

Marco Vanoli
Ranch Hand

Joined: Jan 12, 2005
Posts: 99
Why there are 2 jars


, wich to use?
[ August 12, 2005: Message edited by: Bear Bibeault ]

bye, <br />Marco
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
Looks like connector-g.jar contains a package ( com.mysql.jdbc.trace ) that is not in the other, not sure what it is for, possibly debugging connector source. Probably just use the other one, without the -g.
SCJP 1.4
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Yup, I am also just guessing here but, the one with 'g' probabely produces more log output to help with debugging and is good for development, and the other one should be used for deployment.

The future is here. It's just not evenly distributed yet. - William Gibson
Sonny Gill LinkedIn
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

From the MySQL Docs...

MySQL Connector/J is distributed as a .zip or .tar.gz archive containing the sources, the class files a class-file only "binary" .jar archive named "mysql-connector-java-[version]-bin.jar", and starting with Connector/J 3.1.8 a "debug" build of the driver in a file named "mysql-connector-java-[version]-bin-g.jar".
I agree. Here's the link:
subject: downloading mysql-connector-java-3.1.8
It's not a secret anymore!