You might have noticed this error while connecting to a remote database server from other machines (different IP). See the below steps to resolve the issue.
1. Check the /etc/my.cnf configurations
2. Comment the bind IP line as below :
which allows machines from other IPs to connect into this database server.
Enjoy ! 🙂