Warning: mysqli_connect(): (HY000/1045): Access denied for user \'username\'@\'localhost\' (using password: YES) in C:\\Users\\xampp\\htdocs\\PHP_Login_Script
Use this After setup this you will not receive this issue again
SET PASSWORD FOR root@localhost = PASSWORD('your_root_password');
I was stuck up in this issue after used this query everything was solved