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. i need save,delete,update use arrayList.
th

View Tutorial          By: kyaw at 2010-04-07 01:55:02

2. We need an example to tokenize a xml file
View Tutorial          By: Todo at 2010-03-03 03:27:01

3. Please, send me a working JSP version ,i got error
View Tutorial          By: Pang at 2008-01-11 00:01:52

4. very nice and i need the code for this.. can u sen
View Tutorial          By: bala at 2008-05-14 04:51:07

5. Hi , This SMS code is running fine, but the major
View Tutorial          By: VageR at 2008-09-02 06:33:59

6. Nice explaination of constructor and destructor. B
View Tutorial          By: Anon at 2009-03-01 03:50:06

7. HI,
I am getting this error
Error lo

View Tutorial          By: vijay bhanu at 2009-07-18 08:57:57

8. Thank u it helps me alot.....
View Tutorial          By: Ramya at 2012-02-22 10:16:14

9. this code is not working properly buddies. please
View Tutorial          By: hammad at 2011-06-10 01:53:39

10. tnx man that was short and well explained...
View Tutorial          By: jsf noob at 2012-02-02 13:24:12