java.sql.SQLException: Access denied for user 'com.mysql.cj.jdbc.Driver'@'localhost' (using password: YES)
时间: 2023-08-29 20:11:30 浏览: 92
这个错误提示java.sql.SQLException: Access denied for user 'com.mysql.cj.jdbc.Driver'@'localhost' (using password: YES)表示用户访问被拒绝,原因是密码不正确。根据引用中的错误提示,问题很可能出现在配置文件的密码设置上。请确保您在配置文件中正确地设置了数据库的用户名和密码。您可以参考引用中的配置示例,检查您的配置文件是否正确设置了用户名和密码。另外,您可以使用引用中的指令来查看所有用户的信息,确保您的用户名和密码在数据库中正确存在。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)](https://download.csdn.net/download/weixin_38609128/14832930)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [java.sql.SQLException: Access denied for user 'app '@'xxx.xxx.xxx.xxx' (using password: YES)](https://blog.csdn.net/jdk_wangtaida/article/details/88356035)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [解决:java.sql.SQLException: Access denied for user ''@'localhost' (using password: YES)](https://blog.csdn.net/zhuchunyan_aijia/article/details/102667631)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文