mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: Y
时间: 2023-09-25 20:16:59 浏览: 273
解决mysql登录错误:'Access denied for user 'root'@'localhost'
5星 · 资源好评率100%
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)是phpmyadmin登录报错的一种错误信息。这个错误通常意味着登录到MySQL服务器时提供的用户名和密码不正确。引用中的错误提示表明,尝试使用用户名'pma'和空密码进行登录,而实际上需要提供正确的用户名和密码才能成功登录。引用中提到了一种可能的解决方法,即使用正确的用户名和密码进行登录。另外,引用中提到了可以通过修改config.sample.inc.php文件中的controluser和controlpass来设置正确的用户名和密码。所以,要解决这个错误,您需要确保提供正确的用户名和密码来登录到phpmyadmin。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [mysqli::real_connect(): (HY000/1045): Access denied for user ‘pma‘@‘localhost‘ (using password: ...](https://blog.csdn.net/weixin_52730551/article/details/129080578)[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* [mysqli_real_connect(): (HY000/1045): Access denied for user ‘root‘@‘localhost‘ (using password: ...](https://blog.csdn.net/qq_42043599/article/details/127814940)[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 ]
阅读全文