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

Posted 山水爱恋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java.sql.SQLException: Access denied for user 'scott'@'localhost' (using password: Y相关的知识,希望对你有一定的参考价值。

今天用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: Y的主要内容,如果未能解决你的问题,请参考以下文章