I have a mysql server in linux environment with private ip. A VPN access is provided for accessing MySQL server.
I used VPN and connected through putty access and connected to mysql from CLI. But when i tried through php in wamp environment, it says
Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it.
i used the following line
mysql_connect("privateip","username","pass") or die(mysql_error());
Please help me through this problem. thanks