• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connect with DB mysql  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1063
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: 11338
177
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
Boost this thread!