Two Laptop Bag
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

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
I am using MYSQL as database. Do I need to install mysql JDBC drive??
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:
subject: mysql JDBC driver
It's not a secret anymore!