Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

connecting a java program to an sql database

843859Apr 19 2007 — edited Apr 20 2007
Hi, im kind of new to this and im getting an error that seems fairly common.

"java.sql.SQLException: No suitable driver" I downloaded MySQL Connector/J and added the location of the jar file "mysql-connector-java-5.0.5\mysql-connector-java-5.0.5-bin.jar" to my environment variable "path".

The URL i have entered is "jdbc:msql://localhost:8080/SQLProjects/mcgowap3".

I was told that using local host might be the worng way to go..

Id appreciate any help

Paul
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2007
Added on Apr 19 2007
3 comments
116 views