Database Access Failed : Access denied for user

When trying to access the Administrator login page this error is shown:

Error:
Database access failed : Access denied for user 'root'@'lab20.ppp4.www.printerlogic.com' (using password: YES)

Cause:  
The wrong username was entered in the settings.php file.

Solution:
Enter the correct username in the settings.php file.