fso 拒绝访问_java.sql.sql异常:用户“asus”@“localhost”的访问被拒绝(使用密码:YES)...
java.sql.SQLException: Access denied for user 'asus'@'localhost' (using password: YES)
在整合ssm框架是出現錯誤java.sql.SQLException: Access denied for user 'asus'@'localhost' (using password: YES),經反復百度以及修改后,我的錯誤解決了,如下:
原本的數據庫配置文件:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/ssmbuilder?useSSL=true&useUnicode=true&characterEncoding=utf8
username=root
password=123456
spring連接數據庫代碼
經反復嘗試后,將username該為user解決,我也不知道為啥
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/ssmbuilder?useSSL=true&useUnicode=true&characterEncoding=utf8
user=root
password=123456
總結
以上是生活随笔為你收集整理的fso 拒绝访问_java.sql.sql异常:用户“asus”@“localhost”的访问被拒绝(使用密码:YES)...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java线程池饱和策略_线程池的饱和策略
- 下一篇: java frame 显示图片_java