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

这是之前配置的属性文件:

driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/ssh
username=root
password=root

解决方案:将username改为其他的名称即可

driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/ssh
user=root
password=root

 

posted @ 2019-05-03 13:24  LikFre  阅读(309)  评论(0编辑  收藏  举报