I have a script that is residing on a Plesk server. I have another server that's running CPanel to host the MySQL server.
In Cpanel and WHM I have added the IP of the plesk server to the Remote Database Access Hosts and Additional MySQL Access Hosts respectively.
However when I try to run the script I get the following error:
Warning: mysqli::real_connect() [function.mysqli-real-connect]: (HY000/2003): Can't connect to MySQL server on '22.214.171.124' (4) in /var/www/vhosts/feedsmanagement.com/httpdocs/cp/lib/SimpleTools/SimpleMySQL.php on line 193
Connection error: Can't connect to MySQL server on '126.96.36.199' (4)
Please correct your details and try again.
So what else do I need to do to get the connection to work?