1 Answer
Check if any iptables rule or firewall exists. Since you are using Cpanel hosted server, check that it allows to accept the remote mysql connection is enabled.
Go to Cpanel account, in Database section check for Remote MySQL. And there add your local machine IP and try to connect. Hope it works!!!
Your Answer