Comment on Tutorial - Using JDBC to connect to MySQL from Java Program By Rajan



Comment Added by : ahmed

Comment Added at : 2012-05-11 14:18:46

Comment on Tutorial : Using JDBC to connect to MySQL from Java Program By Rajan
hola

no funciona este
String userName = "userxxxx";
String password = "pasxxxx";
String url = "jdbc:mysql://free.hostingjava.it/dbase";
Class.forName ("com.mysql.jdbc.Driver").newInstance ();
conn = DriverManager.getConnection (url, userName, password);

me da este


Cannot connect to database server : Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.


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. Thnx A Lot...very healpful...........
View Tutorial          By: vinay at 2012-07-19 09:21:20

2. Hi, thi's sursh laveti, actually I'm getting a pro
View Tutorial          By: suresh l at 2015-06-24 07:53:19

3. Would u please provide me with a solution about ho
View Tutorial          By: milan at 2011-02-17 05:39:38

4. Hi all,
I'm getting this error on running

View Tutorial          By: shreya.g at 2008-06-23 00:13:52

5. well understood
View Tutorial          By: shanthini at 2014-04-07 17:19:20

6. grt tutorial
View Tutorial          By: sss at 2009-08-30 03:33:13

7. super
View Tutorial          By: chalamareddy at 2012-10-08 18:08:29

8. This website is great for the students who want to
View Tutorial          By: Parth Patalia at 2009-11-19 21:09:24

9. Seriously very nice explanation.... Thank You
View Tutorial          By: Pulkit agrawal at 2012-03-20 10:28:10

10. Hai,
I have stil problem with generate XML

View Tutorial          By: Priyan at 2009-04-06 12:08:42