Warning: mysql_connect() [function.mysql-connect]: Access denied for user .该怎么解决

WBOY
Release: 2016-06-13 12:55:06
Original
2063 people have browsed it

Warning: mysql_connect() [function.mysql-connect]: Access denied for user ...
浏览器地址栏输入:http://localhost:8082/guest/


出现:


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\AppServ\www\guest\conn.php on line 6
链接错误


这个错误是怎么回事啊

附:数据库已经加入phpmyadmin


------解决方案--------------------
代码中访问数据库的密码不正确
------解决方案--------------------
检查/guest/conn.php中mysql_conn语句,没有填写正确的帐号或密码。
------解决方案--------------------
应该有密码吧,提示都已经说明了(using password: YES)=》正用密码:YES
------解决方案--------------------
C:\AppServ\www\guest\conn.php
修改guest相应的数据库配置文件,以便能连接数据库!
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!