This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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: 2350

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
ITIL foundation
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ SQLState: 08001 VendorError:
 
Similar Threads
How do I load drivers?
unable to establish a connection betwen JDBC and MySQL server using a java class.
do i need odbc to run java applications - reg connection
You've seen it a thousand times before... "SQLException: No suitable driver"
sql exception thrown