java.sql.SQLException: Access denied for user 'root'@'localhost' (using password : YES)

sourceforge.net | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    XPlanner / Discussion / Help:Hibernate operation: Cannot open connection;

    sourceforge.net | 1 year ago
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password : YES)
  2. 0

    XPlanner / Discussion / Help:Hibernate operation: Cannot open connection;

    sourceforge.net | 6 months ago
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password : YES)
  3. 0

    ViewCMSTool.action infinite refresh

    infoglue | 1 decade ago | nobody
    java.sql.SQLException: Access denied for user 'youruser'@'localhost' (using password: YES)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JDBC:Connection Issue When Run program

    Stack Overflow | 2 years ago | hamel123
    java.sql.SQLException: Must specify port after ':' in connection string
  6. 0

    Access remote Db

    Stack Overflow | 2 years ago | SkyLark
    java.sql.SQLException: Access denied for user 'user1'@'hostname' (using password: YES)

  1. linxiaolong 2 times, last 3 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLException

    Access denied for user 'root'@'localhost' (using password : YES)

    at com.mysql.jdbc.MysqlIO.checkErrorPacket()
  2. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
    2. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
    3. com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3649)
    4. com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)
    5. com.mysql.jdbc.Connection.createNewIO(Connection.java:2558)
    6. com.mysql.jdbc.Connection.<init>(Connection.java:1485)
    7. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
    7 frames
  3. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:582)
    2. java.sql.DriverManager.getConnection(DriverManager.java:154)
    2 frames
  4. Commons DBCP
    PoolableConnectionFactory.makeObject
    1. org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:51)
    2. org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
    2 frames
  5. Commons Pool
    GenericObjectPool.borrowObject
    1. org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:771)
    1 frame
  6. Commons DBCP
    PoolingDataSource.getConnection
    1. org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
    1 frame
  7. net.sf.hibernate
    SessionImpl.connection
    1. net.sf.hibernate.connection.DBCPConnectionProvider.getConnection(DBCPConnectionProvider.java:41)
    2. net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:292)
    3. net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3373)
    4. net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3333)
    4 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  9. Hibernate
    HibernateTemplate$CloseSuppressingInvocationHandler.invoke
    1. org.springframework.orm.hibernate.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1098)
    1 frame
  10. Unknown
    $Proxy1.connection
    1. $Proxy1.connection(Unknown Source)
    1 frame