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. very good tutorial
View Tutorial          By: Anonymous at 2009-06-13 01:14:25

2. super article for freshers and good
View Tutorial          By: santhosh at 2011-11-03 14:32:44

3. really a big salute for this notes
View Tutorial          By: SUNDARARAJ VELUSAMY at 2010-09-14 23:39:48

4. Hi,
I run the program on windows (connectin

View Tutorial          By: Razvan at 2010-10-13 06:04:24

5. This post is about adding an application icon to a
View Tutorial          By: Rick at 2011-11-04 16:48:16

6. Nice explaination.. But wats the use of it? Can i
View Tutorial          By: kavita at 2013-04-04 07:10:14

7. Just what i was looking for. tku.
View Tutorial          By: Chow Lim at 2008-03-21 01:46:52

8. Hello
I need some one send me runnable cod

View Tutorial          By: Ahmed Ghazey at 2010-08-09 01:55:48

9. hai.....people ..............


View Tutorial          By: spartan at 2009-08-08 08:42:35

10. Nice example for FileReader and FileWriter,

View Tutorial          By: Tim at 2009-10-21 17:31:00