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. I am new to J2ME but this was really help full and
View Tutorial          By: Subhash at 2013-05-05 08:57:38

2. hi...i want a code to send sms from GSM to PC.
View Tutorial          By: siri at 2011-12-19 07:39:02

3. where i can find Messageressourse.properties......
View Tutorial          By: sanjiv at 2013-09-07 06:59:19

4. Good day. I managed to get the code working but I
View Tutorial          By: thabiso at 2011-06-03 09:08:24

5. Hello,

I was able to rectify port/

View Tutorial          By: Harsh at 2011-10-09 16:54:06

6. This works great.. :)

thanks a lot

View Tutorial          By: Ravi at 2010-07-03 23:34:46

7. Sorry about this. I cannot run this program becaus
View Tutorial          By: TanSW at 2008-04-28 20:14:20

8. yaar this example is easy to understand but other
View Tutorial          By: richa at 2009-09-08 13:52:37

9. the best explaination
View Tutorial          By: kingh at 2010-09-17 04:06:46

10. Great Description. Helped a lot.
View Tutorial          By: Dee2019nc at 2009-11-08 18:26:22