Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Connectivity with MySQL5.1.22

 
Sahaiy Quadri
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic