SQLException: Access denied for user 'xxxx_user'@'' (using password: YES) to database 'xxxx_dbName'
Posted by: zhenghao gong
Date: June 09, 2022 05:23AM

Exception in thread "main" java.sql.SQLException: Access denied for user 'xxxx_user'@'' (using password: YES) to database 'xxxx_dbName'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836)
at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:456)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
at com.xxxx.xxxx.util.JdbcUtil.main(JdbcUtil.java:17)


Why is the local IP( print here?
Misguided me to investigate the direction of the problem.
I hope to get the attention of the community, cancel printing IP or print IP in other ways.

Options: ReplyQuote

Written By
SQLException: Access denied for user 'xxxx_user'@'' (using password: YES) to database 'xxxx_dbName'
June 09, 2022 05:23AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.