Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql JDBC driver

 
shivani anand
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic