java.sql.SQLException: Access denied for user 'nilm_database'@'localhost' (using password: YES)
时间: 2023-09-04 07:06:30 浏览: 124
服务器出现java.sql.SQLException No suitable driver found for 的.pdf
java.sql.SQLException: Access denied for user 'nilm_database'@'localhost' (using password: YES) 是一个数据库访问被拒绝的异常。该异常通常是由于使用错误的用户名或密码导致的。根据引用和引用中的内容,可以看出错误的application.yml文件中的用户名应该是'root'而不是'nilm_database'。正确的application.yml文件应该如引用所示,其中的username应该设置为'root'。同时,需要确保在数据库中已经创建了名为'root'的用户,并且指定的密码正确匹配。<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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [ java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)](https://blog.csdn.net/m0_65041486/article/details/126180450)[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: 50%"]
[ .reference_list ]
阅读全文