php - mysql error in connection to the server -


i'm getting

lost connection mysql server @ 'reading initial communication packet', system error: 2 

error while i'm going connect db.

if i'm using localhost working fine. when i'm using live ip address 1 below, i'm getting error:

mysql_connect("202.131.xxx.106:xxxx", "xxxx", "xxxxx") or die(mysql_error()); 

please me. thanks.

why not use localhost?

try without port number.

or

please check server configuration , port using.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -