Access denied for user ‘root‘@‘localhost‘ (using password: YES)
时间: 2023-08-24 19:15:44 浏览: 38
回答: 出现"Access denied for user 'root'@'localhost' (using password: YES)"的错误通常是由于MySQL服务器拒绝了用户'root'@'localhost'的访问权限。这个错误可能有几个原因。首先,可能是由于MySQL服务器停止了用户的端口号或者IP导致拒绝访问。其次,可能是MySQL的配置文件(如my.ini等文件)出现了错误。最后,可能是'root'用户的密码错误。\[2\]根据错误信息中的"using password: YES"可以判断出,密码是正确输入的。因此,你可以先检查MySQL服务器的配置文件是否正确,并确保端口号和IP地址没有被限制访问。另外,你也可以尝试重置'root'用户的密码,确保密码是正确的。如果问题仍然存在,你可以查看MySQL的错误日志文件,以获取更详细的错误信息,帮助你解决这个问题。
#### 引用[.reference_title]
- *1* [Access denied for user ‘root‘@‘localhost‘ (using password:YES)解决方法](https://blog.csdn.net/m0_57287284/article/details/127682904)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [MySQL登录时出现Access denied for user ‘root‘@‘localhost‘ (using password: YES)无法打开的解决方法](https://blog.csdn.net/csh1807266489/article/details/94477928)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)