为了账号安全,请及时绑定邮箱和手机立即绑定

Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

正在回答

3 回答

一方面可能是你密码错了我,另一个就是你写的properties文件不符合规范,改成如下就可以了:

jdbc.propertis

driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=utf8
user=root
password=123

对应的配置连接池属性也要改。


0 回复 有任何疑惑可以回复我~

同问 !~!!!!!!

0 回复 有任何疑惑可以回复我~

检查一下数据库的密码对吗

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号