Access denied for user 'root'@'localhost' (using password: NO)

Error:

Could not connect to the database to read the site configuration.