This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes mysql JDBC driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "mysql JDBC driver" Watch "mysql JDBC driver" New topic
Author

mysql JDBC driver

shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
When I am running my application I am getting following error in Catalina.out when my Application wants to insert record in database.
java.sql.SQLException: Can't find class for driver rg.gjt.mm.mysql.Driver.
I am using MYSQL as database. Do I need to install mysql JDBC drive??
Thanks
SA
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Yes, you do.

It's called ConnectorJ these days, and you can download it from the mysql web site

You put the driver into your WEB-INF/lib directory, or into shared/lib in CATALINA_HOME

The driver class is com.mysql.jdbc.Driver
The connection URI hasn't changed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mysql JDBC driver