*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
jQuery in Action, 2nd edition
 
subject: mysql JDBC driver
 
Similar Threads
Java MySql connectivity using Linux sockets
SCHWERWIEGEND: A web application appears to have started a thread named [DefaultQuartzScheduler_Work
cant find Database Driver class:
Servlets, JDBC and Mysql
MySQL driver not getting registered