permaculture playing cards*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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: 4968

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 ]
Krishna Bharati
Greenhorn

Joined: May 12, 2008
Posts: 4
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Driver name for connecting MYSQL 5.0.5 with JAVA
 
Similar Threads
Oracle database
PROTOTYPE
No suitable driver Exception for sql server 2000
database connectivity
PROTOTYPE