Cannot connect to MySQL server

If you have recently updated the MySQL credentials in the config.php file, moved your store to another server, or updated the password of your hosting control panel (some control panels update the MySQL password automatically if you change the main password), make sure the MySQL credentials specified in your store's config.php file match the MySQL credentials provided by your hosting.