Access denied for user 'root'@'221.232.242.142' (using password: YES)
时间: 2023-08-08 07:07:29 浏览: 42
Access denied for user root@localhost (using passwor)
5星 · 资源好评率100%
这个错误是因为用户'root'@'221.232.242.142'在使用密码时被拒绝访问。根据引用\[1\]中的授权语句,你可能没有为用户'root'设置正确的权限或密码。请确保你已经正确地为用户'root'设置了权限,并且密码是正确的。另外,根据引用\[2\]和\[3\]的建议,你可以尝试在键名中使用不同的前缀,以避免与用户名相同的键名冲突。
#### 引用[.reference_title]
- *1* [java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)报错原因](https://blog.csdn.net/qq_38188762/article/details/127947617)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [java.sql.SQLException Access denied for user ‘root‘@‘localhost‘ (using password YES)异常解决](https://blog.csdn.net/qq_45652428/article/details/119375183)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文