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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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

Solutions on the web

via Stack Overflow by nenito
, 1 year ago
Access denied for user 'nunit '@'localhost' (using password: YES)
via wordpress.com by Unknown author, 1 year ago
Access denied for user ‘hibuser’@’localhost’ (using password: YES)
via nisthaonweb.com by Unknown author, 1 year ago
Access denied for user ‘root’@’localhost’ (using password: YES)
via csdn.net by Unknown author, 1 year ago
via Stack Overflow by Yves Nicolas
, 2 years ago
Access denied for user 'unifiedpush'@'172.17.0.33' (using password: YES)
java.sql.SQLException: Access denied for user 'nunit '@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:871)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4323)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1267)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2255)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
18 times, 1 year ago
165 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.