:)
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
PHP to import other people's projects I am using XAMPP Then the first error reported
How to fix it: Configuration file error. Mainly caused by the project that comes from others. The database password is different from your settings. Just change it.
Find the data folder under the project name and then find it again. conf folder and then find db.php and modify its content. Open db.php and change the password. You should be able to change the password in the box:
The above introduces PHP learning----Access denied for user root@localhost, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.