Database Connection failed: mysql_error: Accessdeniedforuserroot @ localhost FAQ
Database Connection failed: mysql_error: Access denied for user 'root' @ 'localhost' (using password: YES)
What is this? what is the password?
This error occurs when I install AppServ in the project and access the project website.
Access phpMyAdmin is normal
(The server is not your computer)
Please help. please give me more details. Only understand php
Reply to discussion (solution)
The root user has no permissions. check your password.
Find the configuration file of your project and change the password.
Mysql_error: Access denied for user 'root' @ 'localhost' (using password: YES)
Your root user's password is incorrect.
The default administrator username of the root user. as long as you have not deleted it, the root user always exists.
The problem lies in the password. using password: YES indicates that you have entered the password, but the password is incorrect.
Since phpMyAdmin can work, you can find the password in the phpMyAdmin configuration file.