java.sql.SQLException: Access denied for user 'office1'@'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

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 opengts by natelaws83
, 1 year ago
Access denied for user 'office1'@'localhost' (using password: NO)
via sourceforge.net by Unknown author, 1 year ago
Access denied for user 'office1'@'localhost' (using password: NO)
via Stack Overflow by Antony Sampath Kumar Reddy
, 6 months ago
Access denied for user 'root'@'localhost' (using password: NO)
via opengts by nandhug05
, 1 year ago
Access denied for user 'root'@'localhost' (using password : YES)
via Stack Overflow by Kadenge Gungwa
, 1 year ago
via Stack Overflow by Curbe
, 9 months ago
Access denied for user 'localhost'@'localhost' (using password: YES)
java.sql.SQLException: Access denied for user 'office1'@'localhost' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2502)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2535)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2320)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:215)
at org.opengts.dbtools.DBConnection.getConnection(DBConnection.java:654)
at org.opengts.dbtools.DBConnection.createStatement(DBConnection.java:764)
at org.opengts.dbtools.DBConnection.createStatement(DBConnection.java:752)
at org.opengts.dbtools.DBConnection._executeUpdate(DBConnection.java:977)
at org.opengts.dbtools.DBConnection.executeUpdate(DBConnection.java:932)
at org.opengts.dbtools.DBConnection.executeUpdate(DBConnection.java:913)
at org.opengts.dbtools.DBProvider.createDatabase(DBProvider.java:1629)
at org.opengts.dbtools.DBAdmin.execCommands(DBAdmin.java:885)
at org.opengts.db.DBConfig._main(DBConfig.java:1508)
at org.opengts.db.DBConfig.main(DBConfig.java:1623)

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
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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