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. Nice code easily understand the code and useful
View Tutorial          By: satish at 2010-01-22 06:30:22

2. You can not overload the private method in Test cl
View Tutorial          By: Gaurav at 2013-07-28 15:53:20

3. nice example!!
View Tutorial          By: gayathri subramanian at 2010-08-18 09:27:59

4. simple and clear..
View Tutorial          By: sudhesh at 2011-12-22 04:05:14

5. I had just copied the code & tried to execute
View Tutorial          By: dhananjay padalkar at 2010-02-13 19:20:27

6. 0
View Tutorial          By: zareen at 2011-08-20 08:27:28

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

8. Awesome and straight forward
View Tutorial          By: Nag at 2012-11-07 23:47:10

9. How can i use this code to send multiple sms using
View Tutorial          By: Shoaib at 2014-03-07 19:49:11

10. good but you don't express the programs examples
View Tutorial          By: anchal at 2010-09-29 02:40:02