当前位置:文档之家› 【IT专家】MySQL使用数据库出现如下异常,用的是dbcp连接池,, 跪求!!!

【IT专家】MySQL使用数据库出现如下异常,用的是dbcp连接池,, 跪求!!!

本文由我司收集整编,推荐下载,如有疑问,请与我司联系MySQL使用数据库出现如下异常,用的是dbcp连接池,,跪
求!!!

重:Servlet.service()forservlet[springDispatcherServlet]incontextwithpath[/springmybatis]t hrewexception[Requestprocessingfailed;nestedexceptionisorg.mybatis.spring.MyBatisSyst emException:nestedexceptionisorg.apache.ibatis.exceptions.PersistenceException:
###Errorqueryingdatabase.Cause:org.springframework.jdbc.CannotGetJdbcConnectionEx ception:CouldnotgetJDBCConnection;nestedexceptionisjava.sql.SQLException:Cannotcre atePoolableConnectionFactory(Accessdeniedforuser’root’@’localhost’(usingpassword:YE S)) ###Theerrormayexistinfile[D:\Tomcat\webapps\springmybatis\WEB-INF\classes\com\hellojava\springmybatis\entity\UserMapper.xml]
###Theerrormayinvolvecom.hellojava.springmybatis.dao.IUserDao.loadbyId
###Theerroroccurredwhileexecutingaquery
###Cause:org.springframework.jdbc.CannotGetJdbcConnectionException:CouldnotgetJD BCConnection;nestedexceptionisjava.sql.SQLException:CannotcreatePoolableConnection Factory(Accessdeniedforuser’root’@’localhost’(usingpassword:YES))]withrootcause java.sql.SQLException:Accessdeniedforuser’root’@’localhost’(usingpassword:YES) atcom.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
atcom.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
atcom.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
atcom.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
atcom.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:911)
atcom.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3953)
atcom.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1276)
atcom.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2048)。

相关主题