This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes JDBC-Mysql relation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC-Mysql relation" Watch "JDBC-Mysql relation" New topic

JDBC-Mysql relation

Brusk Baran
Ranch Hand

Joined: Nov 15, 2001
Posts: 132
Both seem to be working fine..
<p> <b>Class.forName("").newInstance();
but guess only one should work, which is the older version then?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

I think that the was for the MMSQL Driver that has now been changed to the Connector/J Driver which uses the com.mysql.jdbc....
You probably have both drivers in your classpath, therfor both are able to resolve???
DO you know what Driver you are using?

GenRocket - Experts at Building Test Data
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Coma,
The MM distribution has stopped, so the short answer is use the com.mysql.jdbc.Driver driver.
Now, make sure you have the latest stable version of the com.mysql.jdbc.Driver by looking at the MySQL Connector/J page.
By the way, last version to-date is 2.0.14.
Have you checked out Aspose?
subject: JDBC-Mysql relation
jQuery in Action, 3rd edition