Database Access Failed : Access denied for user

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

Database access failed : Access denied for user 'root'@'' (using password: YES)

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

Enter the correct username in the settings.php file.

Your browser is not supported.

This website will not run properly on this browser. To use the site, update to one of these modern browsers:

Continue to site