Get your CodeRanch badge!*
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
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: 2477
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError:
 
Similar Threads
do i need odbc to run java applications - reg connection
How do I load drivers?
sql exception thrown
unable to establish a connection betwen JDBC and MySQL server using a java class.
You've seen it a thousand times before... "SQLException: No suitable driver"