Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Java Connectivity with MySQL5.1.22

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

I am running all software on one machine.
I have java jdk1.6.14 installed in C drive and MySQL 5.1.22 installed in D drive.
Drivers with MySQL Tools (all in D drive ) were

jtds-1.2.jar
junit.jar
mysql-connector-java-5.0.4-bin.jar
mysql-grt-java-1.0.0-bin.jar
sapdbc-7_6_00_12_4339.jar

A simple connection with DriverManager.getConnection("jdbc:mysql://localhost/dbname","root","password"); is giving the error no suitable driver found for jdbc:my........./dbname
All Java programs are running fine. MySQL too is working and giving all query results. Both are woking well when separate. But problem is arising only when i wish to connect both of them.
Any Help???

Regards,
SAH
 
Sheriff
Posts: 22509
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you load the class first? This single line should do that:
 
Sahaiy Quadri
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the help, yes i forgot that line. Can you help with NetBeans IDE 7.0.1 and Java Bean??
 
reply
    Bookmark Topic Watch Topic
  • New Topic