aspose file tools*
The moose likes JDBC and the fly likes SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError:" Watch "SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError:" New topic
Author

SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError:

Rax Wer
Greenhorn

Joined: Mar 31, 2010
Posts: 12
Hello All...

I am trying to connect Mysql database in eclipse with Tomcat server..

Getting an error..

Its working fine when i am using DSN name in connection,, But not working with mysql connector. Please Help...

Can anyone tell me the steps to configure all this,,

Thanks and Regards..
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2503
    
    8

Hi Rax.

The error points out that the code you are running does not find the suitable driver for your connection url.
Where and when are you getting this error?
We can probably help you if we know the context.


OCUP UML fundamental and ITIL foundation
youtube channel
Rax Wer
Greenhorn

Joined: Mar 31, 2010
Posts: 12
First of all thanks for replying...

I am trying to learn eclipse, so there i made a simple servlet, made a database in mysql. Added Tomcat Apache server. but i think i am missing some step in procedure.

The Servlet program is given as::




Output is::

You can do it man...
Unable to load driver.

SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError: 0
Hello World.



Please tell me the steps to setup driver connections in eclipse..

Thanks again.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError: