`
wxb880114
  • 浏览: 681034 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

java.sql.SQLException: Access denied for user 'root'@'localhost'2011-05-05 1:31异

阅读更多
java.sql.SQLException: Access denied for user 'root'@'localhost'2011-05-05 1:31异常:

严重: Servlet.service() for servlet default threw exception
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)



javax.servlet.ServletException: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES)); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))



org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES)); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))



原因:applicationContext.xml 中配置的连接数据库的用户名或密码错误!


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics