Warning: mysql_connect () [function. mysql-connect]: Accessdeniedforuser. how can this problem be solved?
Source: Internet
Author: User
Warning: mysql_connect () [function. mysql-connect]: Accessdeniedforuser... enter http: // localhost: 8082/guest/in the address bar of the browser. the following error occurs: Warning: & nbsp; mysql_conne Warning: mysql_connect () [function. mysql-connect]: Access denied for user...
Enter http: // localhost: 8082/guest/in the address bar of the browser/
Appears:
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
Link error
What is this error?
Appendix: The database has been added to phpmyadmin.
------ Solution --------------------
The password used to access the database in the code is incorrect.
------ Solution --------------------
Check the mysql_conn statement in/guest/conn. php. the correct account or password is not entered.
------ Solution --------------------
There should be a password. the prompt shows that (using password: YES) = "The password is being used: YES
------ Solution --------------------
C: \ AppServ \ www \ guest \ conn. php
Modify the corresponding database configuration file of guest to connect to the database!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service