File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes MySql connectivity problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "MySql connectivity problem?" Watch "MySql connectivity problem?" New topic

MySql connectivity problem?

Ravinder Rana

Joined: May 10, 2006
Posts: 29
Hi Ranchers,

I'd a problem regarding MySql connection.i use MySql version mysql-essential-5.0.21-win32, and Driver for this is mysql-connector-java-3.1.13.
My connectivity code is

I got the Servlet Exceptions, No suitable driver,at java.sql.DriverManager.getConnection(Unknown Source)

Plz correct me, I'm a bit cofuse.

Thanks in advance.
Goodness is the real investment that never fails

[ July 10, 2006: Message edited by: Bear Bibeault ]
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

Add a colon after mysql in the connection string.

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: MySql connectivity problem?
It's not a secret anymore!