首页 > 代码库 > java.sql.SQLException: Access denied for user 'scott'@'localhost' (using password: YES)

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

今天用eclipse连接一下数据库,出现此异常。

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

        JAVA中链接类

技术分享

 

解决办法:发现数据库好久不用,用户的登录密码记错了。

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