This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 3749

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!