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



Comment Added by : yeshdeep kumar

Comment Added at : 2014-11-12 07:46:46

Comment on Tutorial : Using JDBC to connect to MySQL from Java Program By Rajan
I have writtent this code in my jdbc program,

String url = "jdbc:mysql://localhost:3306/DBName";
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection (url, "root", "root");
This will connect with my localhost xampp server but i want to access my domain database with my JDBC program..please help me.


View Tutorial



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. Hi, this blog answers my questions but what is the
View Tutorial          By: Edu at 2009-09-20 00:19:27

2. Thank you very much for such a nice topic
View Tutorial          By: CHANDAN at 2012-11-01 04:40:02

3. Cool it help me a lot
View Tutorial          By: urdu sms at 2009-10-06 12:16:20

4. Thanks for the above code. I am not sure whether t
View Tutorial          By: Koolkabin at 2010-08-20 01:11:27

5. Good examples for beginners.
View Tutorial          By: Sagar at 2009-10-16 01:04:46

6. Who can send me the program and source to call thi
View Tutorial          By: Michael Chon at 2008-10-04 21:03:30

7. if(a instanceof C)
System.out.println("

View Tutorial          By: John at 2012-07-13 17:34:42

8. excellent
View Tutorial          By: alok mishra at 2008-05-12 00:51:57

9. i need to use sms and to creat using java so it is
View Tutorial          By: Abdulkerim at 2009-09-07 05:29:15

10. A good tutorial! Hope this would help the JSP deve
View Tutorial          By: geetha at 2008-09-12 04:17:14