Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connect with DB mysql

 
Isaac Ferguson
Ranch Hand
Posts: 1032
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im trying to connect from a java app, to a DB. The DB is in HostGator. I added my IP to Host Gator, in order to get access to it. The code I m using is like this:



The next line is wrong



What should I use in this case?

Regards,
Isaac
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the Oracle's JDBC Tutorial to see how you should create a connection using JDBC 4.0 or later.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic