首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

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

2013-11-08 
java.sql.SQLException: Access denied for user root@localhost2011-05-05 1:31异java.sql.SQLExcept

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 中配置的连接数据库的用户名或密码错误!


热点排行