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. Thanks a lot!!!

Its very useful exp

View Tutorial          By: dipali at 2012-12-31 06:49:41

2. Write a program to input the number and use switch
View Tutorial          By: abdulaziz at 2014-03-28 16:22:35

3. Very nice tutorial :)

I have teste

View Tutorial          By: yannoo95170 at 2015-06-18 00:30:26

4. Hello, I have executed the above code and it works
View Tutorial          By: Sana at 2010-02-01 03:49:44

5. error :

Object reference not set to

View Tutorial          By: Ramnath at 2011-05-30 04:01:32

6. Hello,

Could you please include all

View Tutorial          By: John at 2007-12-19 04:35:54

7. pls send me the brief description about jdbc conne
View Tutorial          By: vikas at 2011-08-09 07:07:53

8. Good Work ...
View Tutorial          By: Sagan at 2013-08-13 13:38:30

9. Hi Along with your provided code below, if we are
View Tutorial          By: Roshan at 2011-05-02 12:06:27

10. Brief but Comprehensive. Excellent Effort.
View Tutorial          By: Farooq at 2011-11-16 14:14:52