Java program didn't work on MySQL5.7

User'Airy' host is '%' and its work well in mysqlworkbench but i just cant use it to access database in my java program even the 'root',by the way my jdbc driver is 6.0.6

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

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:545)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:513)

at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:115)

at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:1606)

at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:633)

at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:347)

at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:219)

at java.sql.DriverManager.getConnection(DriverManager.java:664)

at java.sql.DriverManager.getConnection(DriverManager.java:247)

at util.DBHelper.getConnection(DBHelper.java:35)

at util.DBHelper.main(DBHelper.java:44)...

Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts