Comment on Tutorial - Using JDBC to connect to MySQL from Java Program By Rajan



Comment Added by : Rita sen

Comment Added at : 2012-01-05 05:18:13

Comment on Tutorial : Using JDBC to connect to MySQL from Java Program By Rajan
@mahesh yes you can use this to connect to any db server. Just get the ip address of the db server and replace the below line
String dbUrl = "jdbc:mysql://your.database.domain/yourDBname";

To
String dbUrl = "jdbc:mysql://ip/yourDBname";


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. /** Example shows garbage collector in action

View Tutorial          By: sreekar at 2010-05-08 07:58:09

2. someone explain how to use PreparedStatements with
View Tutorial          By: Manikprabhu at 2011-03-26 00:04:54

3. copy of h.sheld
View Tutorial          By: vivek at 2011-08-31 13:12:36

4. @Adam:
CompareTo returns the difference of

View Tutorial          By: Azher at 2010-01-29 12:23:39

5. Thanks for the help, however I am having some diff
View Tutorial          By: Andrew at 2008-09-30 14:51:14

6. Thnx.. it was clearly explained... tomorrow i have
View Tutorial          By: Susmitha Sen at 2012-03-25 09:34:29

7. sir , i'm doing BCA . I want to learn more about
View Tutorial          By: gayatri patil at 2012-08-18 10:08:32

8. why we use the java in networking and What are the
View Tutorial          By: ali mohammed at 2015-10-11 22:34:36

9. My Page URL- http://localhost:8080/WebApplication1
View Tutorial          By: aMIT sURI at 2012-05-12 10:43:21

10. Hai,
I have stil problem with generate XML

View Tutorial          By: Priyan at 2009-04-06 12:08:42