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. In the block form of SMTP.start, is there a way to
View Tutorial          By: Roshan at 2012-02-02 11:48:53

2. I have loaded allthe 5 java files.But how to imple
View Tutorial          By: Pandiyan at 2015-08-24 08:02:32

3. I want an example...to get multiple values using S
View Tutorial          By: Madhu at 2015-07-13 19:57:14

4. Thanks for everything... I'm greeting you from Aze
View Tutorial          By: Shahriyar at 2011-04-28 15:54:14

5. Very simple, clear visualized and meaning
View Tutorial          By: HIM at 2011-07-21 21:43:58

6. Hi, I need the complete working code for sending a
View Tutorial          By: Balaji Srikaanth at 2007-03-10 01:22:35

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

8. It's a useful explanation, but i wanna known how c
View Tutorial          By: Noe Marin at 2008-01-25 13:27:57

9. I tried ....so this is best solution for understa
View Tutorial          By: rehnuma at 2015-03-30 12:29:38

10. i get this msg when one of the clients close there
View Tutorial          By: Zero Code at 2009-07-16 14:05:14