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



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. Can you send me the full code for sending sms usin
View Tutorial          By: Tamizh chelvam at 2014-03-24 17:30:52

2. i need java simple programs
View Tutorial          By: Tharani at 2010-01-22 06:39:25

3. thanks i am fresher to j2me i understand the conce
View Tutorial          By: anusha at 2010-04-20 00:32:10

4. Thanks for your nice article.I learned a lot
View Tutorial          By: Mahyar at 2012-08-12 12:09:36

5. This explanation is simple and very useful.
View Tutorial          By: kiran at 2015-02-22 20:47:13

6. Yes, as @ Mansi said it's really helpful.
I

View Tutorial          By: Eko SW at 2011-06-22 23:38:22

7. I am using my NOKIA 6630 via usb connection, runni
View Tutorial          By: muhin at 2010-04-19 21:37:02

8. Nice explanation with appropriate example
View Tutorial          By: VL at 2009-04-09 06:17:37

9. Thanks for the Topic. But there are many more comp
View Tutorial          By: Uditha Madumal at 2010-09-15 19:39:13

10. its a very very good artical
View Tutorial          By: xyz at 2011-06-17 08:12:26