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. well...raghu download the sun api...whose link is
View Tutorial          By: rima at 2008-12-27 22:22:03

2. What is this....for simple question every one was
View Tutorial          By: Kaify at 2011-07-27 21:35:52

3. i was told to write a class which wl work as Strin
View Tutorial          By: ireen at 2011-04-13 04:59:31

4. Just read the first page, It really attractive. Le
View Tutorial          By: Md. Sumon Bappi at 2015-05-13 10:47:00

5. I have a website and i want to make a option to se
View Tutorial          By: rasel at 2011-11-26 15:50:49

6. HI All,

I am using this code but fo

View Tutorial          By: muna at 2015-07-04 12:28:15

7. i have connected my phone through bluetooth and us
View Tutorial          By: nikitha at 2013-02-05 09:07:34

8. cool!!!

can you show me some sample

View Tutorial          By: eduard jacob bernido at 2008-07-14 04:01:59

9. very good tutorial
View Tutorial          By: Anonymous at 2009-06-13 01:14:25

10. thanks buddy is's very nice and useful example
View Tutorial          By: mayur at 2012-11-05 05:00:11