java.sql.SQLException

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

Samebug tips1

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

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

Solutions on the web5781

  • Access denied for user 'root@localhost'@'localhost' (using password: YES)
  • via atomikos.com by Unknown author, 1 year ago
    Access denied for user 'root@localhost'@'localhost' (using password: YES)
  • Access denied for user 'root@localhost'@'localhost' (using password: YES)
  • Stack trace

    • java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4096)

    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

    6 times, 14 minutes ago
    693 times, 3 hours ago
    4 times, 2 weeks ago
    5 times, 2 weeks ago
    Once, 2 weeks ago
    148 more bugmates