i've wrote php page on localhost (xamp) connects online mysql server (i got host , used database, put % on remote mysql®) , shows table. worked fine below code:
$server= 'harfenaab.ir:3306'; $user = 'username'; $pass = 'pass'; $db = 'mydatabase'; $conn = mysqli_connect($server,$user,$pass,$db);
it gets connected , reads , writes perfect. when uploaded other host (totally different 1 database), gets timed out. code same in localhost, doesn't work on host. see: http://azarsat.blue/class_plugins.php
the error is:
connection failed:connection timed out
would appreciate if guys.
thanks, sindrome
Comments
Post a Comment