Error message: Access denied for user "username"@"hostname" (Using password: YES) (1045)

This error occurs when

This is a common error, as MySQL access is restricted by client host combined with the username & password credentials, and access has to be specifically granted as detailed in the MySQL documentation.