This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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.
 
wood burning stoves
 
subject: mysql JDBC driver