Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to overcome No suitable Driver problem with mysql...?

 
Bhavesh Sangwan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there !
I'm trying to connect with mysql server and supplying information but having problem ....

My Database information is listed below :

Host Name : SSDN123.db.4820203.hostedresource.com
Database Name : SSDN123
User Name : SSDN123
Password : Ssdn@123

And I'm to connect this DB using the following code....

db_config.properties


ConnectionFactory.java


and my main class is:



please guide me if I'm making correct URL for mysql database using db_name and db_host properties.. or not

also tell me how to resolve the No suitable driver found problem....

Help please...
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you adding the driver to your classpath?
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your connection URL is wrong indeed. Have a look in the documentation for the proper URL syntax.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic