java.sql.SQLException: Access denied for user '123456'@'localhost' (using password: YES)
时间: 2023-09-13 20:03:00 浏览: 106
这个错误java.sql.SQLException: Access denied for user '123456'@'localhost' (using password: YES)通常是由于用户名或密码不正确导致的。根据引用,这个错误在Stack Overflow上也被提到过,可能是由于密码不正确导致的访问被拒绝。引用和引用中也提到了类似的问题,其中一个原因是配置文件中的密码不正确。所以,你需要确保用户名和密码都是正确的,并且在配置文件中正确地设置了数据库的连接信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Caused by: java.sql.SQLException: Access denied for user](https://blog.csdn.net/robert_lizhiqiang/article/details/44225187)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [java.sql.SQLException: Access denied for user](https://blog.csdn.net/qq_44684311/article/details/115840998)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文