账号和密码都没错,用其他软件可以正常连接,再帆软显示失败 错误详情: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'kedu_jinan2020'@'%' to database 'databasename' sun.reflect.GeneratedConstructorAccessor236.newInstance(null.-1) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java.45) java.lang.reflect.Constructor.newInstance(Constructor.java.423) com.mysql.jdbc.Util.handleNewInstance(Util.java.403) com.mysql.jdbc.Util.getInstance(Util.java.386) com.mysql.jdbc.SQLError.createSQLException(SQLError.java.944) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java.3933) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java.3869) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java.864) com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java.1707) com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java.1217) com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java.2189) com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java.2220) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java.2015) com.mysql.jdbc.ConnectionImpl. com.mysql.jdbc.JDBC4Connection. sun.reflect.GeneratedConstructorAccessor233.newInstance(null.-1) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java.45) java.lang.reflect.Constructor.newInstance(Constructor.java.423) com.mysql.jdbc.Util.handleNewInstance(Util.java.403) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java.385) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java.323) com.fr.third.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java.1461) com.fr.third.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java.1525) com.fr.third.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java.2165) |