• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mysql JDBC driver

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic