Warning: mysqli_connect(): (HY000/1045): Access denied for user \'username\'@\'localhost\' (using password: YES) in C:\\Users\\xampp\\htdocs\\PHP_Login_Script
Do you have two connections at the same time? If so, close every time you don't need it.
In my case the problem was:
define ('DB_PASSWORD', "MyPassw0rd!'");
(the odd single ' before the double ")
Not that anyone would ever have CAPS on when entering a password...but it can give this error.