What to do when I get a message “Access denied” when testing connection to a MySQL database?

Check that the database is started >> If the server has a firewall, verify that the port is open (by default 3306)
>> Check that the user name/Password is correct >> Check the MySQL IP addresses where the database is hosted.