mysqli::real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO) 使用配置文件中定义的控制用户连接失败。
时间: 2023-10-22 18:27:33 浏览: 256
这个错误是由于连接数据库时使用的用户名和密码不正确导致的。根据引用和引用的信息,错误消息中显示的用户是'pma',但是在配置文件中,控制用户的用户名是'pma'并且密码是'pmapass',这与错误消息中显示的信息不一致。所以,可以尝试修改配置文件中的控制用户的用户名和密码,将其设置为正确的值。具体来说,根据引用的信息,可以尝试将config.sample.inc.php文件中的注释去掉,并将'pma'改为正确的用户名,'pmapass'改为正确的密码。然后保存文件,并重新尝试登录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 ]
阅读全文