java.sql.SQLException

Access denied for user 'root '@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLErro r.java:1075) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:3566) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:3498) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:919) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java: 4004) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:12 84) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(Co nnectionImpl.java:2312) at com.mysql.jdbc.ConnectionImpl.createNewIO(Connecti onImpl.java:2122) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImp l.java:774) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connect ion.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web23

  • Stack trace

    • java.sql.SQLException: Access denied for user 'root '@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLErro r.java:1075) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:3566) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:3498) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:919) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java: 4004) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:12 84) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(Co nnectionImpl.java:2312) at com.mysql.jdbc.ConnectionImpl.createNewIO(Connecti onImpl.java:2122) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImp l.java:774) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connect ion.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.