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 ngocanh, You are right. The client has to be in
View Tutorial          By: Emiley J at 2013-07-14 05:51:35

2. it is good
View Tutorial          By: kamal at 2009-11-01 19:58:54

3. very nice tutorial.
Thanks..

View Tutorial          By: Ramar at 2011-06-16 08:16:14

4. pls sed total informatio about c++
View Tutorial          By: anu at 2009-07-22 11:13:07

5. I have modified this example a bit and I'm using a
View Tutorial          By: Lee Murray at 2010-11-02 03:41:56

6. pls help me .....its hard to understand for me th
View Tutorial          By: heidi at 2010-06-27 02:31:29

7. hi.I am new in j2me and really want to learn more
View Tutorial          By: Deepak kumar at 2010-11-15 03:04:15

8. give some good examples very bad i dont lke dis ex
View Tutorial          By: abinaya banu at 2014-07-14 06:04:28

9. This works perfect for me. The only big problem is
View Tutorial          By: Eric at 2014-11-20 03:49:19

10. plz send me 1 ex that will explain how to use conn
View Tutorial          By: abhijit marne at 2011-12-09 06:32:07