aspose file tools
The moose likes JDBC and the fly likes Driver name for connecting MYSQL 5.0.5 with JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Driver name for connecting MYSQL 5.0.5 with JAVA" Watch "Driver name for connecting MYSQL 5.0.5 with JAVA" New topic
Author

Driver name for connecting MYSQL 5.0.5 with JAVA

Krishna Bharati
Greenhorn

Joined: May 12, 2008
Posts: 4
Hi,

Can anyone help me telling the driver name for connecting MYSQL5.0.5 with JAVA
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

I believe I was using com.mysql.jdbc.Driver for 5.5

Here's the downloads page for connector/J at mysql.org :

MySQL JDBC Driver Downloads

When you are using JDBC outside of an application server, the DriverManager class manages the establishment of Connections.

The DriverManager needs to be told which JDBC drivers it should try to make Connections with. The easiest way to do this is to use Class.forName() on the class that implements the java.sql.Driver interface. With MySQL Connector/J, the name of this class is com.mysql.jdbc.Driver.


MySQL 5.1 Documentation Page

-Cameron McKenzie
[ June 09, 2008: Message edited by: Cameron Wallace McKenzie ]

Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Krishna Bharati
Greenhorn

Joined: May 12, 2008
Posts: 4
Thank you.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Driver name for connecting MYSQL 5.0.5 with JAVA
 
Similar Threads
PROTOTYPE
Oracle database
PROTOTYPE
database connectivity
No suitable driver Exception for sql server 2000