jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes MYSQL   Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "MYSQL   Exception" Watch "MYSQL   Exception" New topic
Author

MYSQL Exception

Bacchi Gerem
Ranch Hand

Joined: Jan 23, 2004
Posts: 120
I am using WSAD and MYSQL database. I am getting error

Exception:com.mysql.jdbc.Driver

I did all required setting :
My Classpath:
CLASSPATH=.;C:\mysql\mysql-connector-java-3.1.10;C:\mysql\mysql-connector-java-3
.1.10\mysql-connector-java-3.1.10-bin.jar

I imported the mysql-connector-java-3.1.10-bin.jar to my project library.
still I am getting this error. Please help in solving this issue.
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 292

Do you have more details about the exception? Is there a stacktrace?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

In WSAD you need to include the driver in either the project build path or the web-inf/lib directory, depending on whether you are running an application or application server. Please provide more information.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MYSQL Exception
 
Similar Threads
JDBC connection error
No suitable driver
java.sql.SQLException: No suitable driver
JDBC MySQL Driver Connection
JDBC for MySQL