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

opengts | cesarman | 10 years 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

    Problem on running OpenGTS

    opengts | 10 years ago | cesarman
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
  2. 0

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

    Stack Overflow | 6 years ago | Jeevan Dongre
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
  3. 0

    Access denied for user 'root'@'localhost - Spring Forum

    spring.io | 1 year ago
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem in Java Exception in thread "AWT-EventQueue-0" ... | DaniWeb

    daniweb.com | 1 year ago
    java.sql.SQLException: Access denied for user 'root'@'localhost' (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:2975)
    2. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:798)
    3. com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3700)
    4. com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1203)
    5. com.mysql.jdbc.Connection.createNewIO(Connection.java:2572)
    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:525)
    2. java.sql.DriverManager.getConnection(DriverManager.java:171)
    2 frames
  4. org.opengts.dbtools
    DBConnection.createStatement
    1. org.opengts.dbtools.DBConnection.getConnection(DBConnection.java:294)
    2. org.opengts.dbtools.DBConnection.createStatement(DBConnection.java:353)
    2 frames