Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 mysql/java/apache network issue

Author  Topic 

LostinLondon
Starting Member

1 Post

Posted - 2011-03-17 : 12:58:25
Hi
I am a complete novice with mysql and know almost nothing about software/program networking.

I basically have a problem trying to get mysql (5.1) to recognice and talk to java and apache-ant.

I'm currently working in a windows CMD shell and have already had issues with the defining the host name (this is how basic i am!!). I think i have that sorted now, but still keep getting this message -

---------------------------------------------------
Exception in thread "main" org.apache.commons.dbcp.SQLNestedException: Cannot cr
eate JDBC driver of class 'org.gjt.mm.mysql.Driver' for connect URL 'jdbc:sqlser
ver://localhost:101/test', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:264)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:743)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:518)
---------------------------------------

Can anyone please help me and offer some novice-level instuction?!!

Cheers.

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-03-17 : 13:15:39
SQLTeam is a Microsoft SQL Server site. For MySQL questions try http://dbforums.com/
Go to Top of Page
   

- Advertisement -