警告:mysqli_connect():(HY000/1045):用户“root”@'localhost“(使用密码:YES)在第14行的C:\phpstudy\PHPstudy\phpstudy_pro\WWW\pikachu\index.php中被拒绝访问
时间: 2023-09-16 22:13:14 浏览: 152
这个警告是由mysqli_connect函数引起的。警告的内容是用户“root”@'localhost“(使用密码:YES)在第14行的C:\phpstudy\PHPstudy\phpstudy_pro\WWW\pikachu\index.php中被拒绝访问。根据引用和引用的内容,这个警告通常是由于数据库用户名、密码或主机名不正确导致的。请确保在连接数据库时使用正确的用户名、密码和主机名。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [警告:mysqli_CONNECT():(HY000/1045):拒绝用户‘用户名..._慕课猿问](https://blog.csdn.net/weixin_32451453/article/details/113280455)[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* [PHP bug:Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘root‘@‘localhost‘ ...](https://blog.csdn.net/weixin_40945354/article/details/108427152)[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 ]
阅读全文