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

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

Solutions on the web

via runawfe by yilativs
, 1 year ago
Access denied for user ''@'localhost' (using password: NO)
via opengts by miguelocepeda
, 1 year ago
Access denied for user 'gts'@'localhost' (using password: NO)
via opengts by zeedoshinra
, 1 year ago
Access denied for user 'root'@'localhost' (using password : NO)
via opengts by brunosvc
, 1 year ago
Access denied for user 'admin'@'localhost' (using passwor d: YES)
via opengts by cesarman
, 1 year ago
Access denied for user 'root'@'localhost' (using password: YES)
via Google Groups by visam gültekin, 5 months ago
Invalid authorization specification, message fromserver : "Access denied for user 'root'@'localhost' (using password: YES)"
java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3558)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1768)
at com.mysql.jdbc.Connection.(Connection.java:430)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at ru.runa.wf.logic.bot.DatabaseTaskHandler.handle(DatabaseTaskHandler.java:100)
at ru.runa.wf.logic.bot.WorkflowMultitaskBot.doTask(WorkflowMultitaskBot.java:144)
at ru.runa.wf.logic.bot.WorkflowMultitaskBot.execute(WorkflowMultitaskBot.java:118)
at ru.runa.wf.logic.bot.WorkflowBotInvoker$BotThread.run(WorkflowBotInvoker.java:97)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
12 more bugmates

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