BishoyM BishoyM - 1 month ago 7
MySQL Question

Mysql No connection could be made because the target machine actively refused it

I know there are many people already asked this , but this people mostly forgot password of blocked by firewall which i have none of this situations .

i am developing with php , and i need to connect to remote database to let all my team work on it .

localhost was just going fine , but when i tried to switch it gave me this error

No connection could be made because the target machine actively refused it.


and this is my code

i want to connect to .nf.biz database

$db=mysqli_connect($host,$user,$password,$db_name,3306);


thanks erverone

Answer

Well this might be late but for future visitors,

I found out back then that biz.nf refuses any connections to it's DB from outside source which means that only the web-apps hosted on biz.nf have the access to their DB other than that you will get rejected.