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

JAVA学习网 2019-05-03 17:15:06

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

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

 

阅读(2374) 评论(0)