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



Comment Added by : sandeep

Comment Added at : 2009-11-24 08:24:20

Comment on Tutorial : Using JDBC to connect to MySQL from Java Program By Rajan
wen i run i get dis error

jdbc:mysql://localhost:3306/details,root,root
java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO
)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:910)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3923)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1273)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2031)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:282)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)


View Tutorial



Ask a Question

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. Sir i am doing b.tech and i want to know about Gar
View Tutorial          By: waseem at 2010-10-10 01:28:42

2. I need how to connect with database connection in
View Tutorial          By: BenGunn at 2010-01-12 03:33:44

3. Well, this fix worked form me using Apache 2.2.11,
View Tutorial          By: Bruce at 2009-07-21 15:03:02

4. notify does NOT wake up the first thread waiting.
View Tutorial          By: Armin at 2009-07-26 07:25:09

5. It will be better, if you expalin by examples codi
View Tutorial          By: Parwez at 2012-06-18 08:03:45

6. it should be:
/* --------------- */

View Tutorial          By: Ryba at 2010-05-19 15:45:48

7. i apprciate your work,plz keep on working harder a
View Tutorial          By: Raymond B. Benedicto at 2013-01-12 07:08:59

8. This isn't entirely correct. A class can be abstra
View Tutorial          By: Jay at 2013-01-30 14:52:15

9. it works well thanks
View Tutorial          By: Zahran at 2011-12-08 03:07:07

10. that is fifo rigth? how about lifo?
View Tutorial          By: galz at 2015-02-18 03:03:31