I have created some PHP webpages for my friend using my localhost/ and gave them to him to upload his server.
After guessing the server that we had to connect to, we ran into some problems. Now, he is too shy to post on here and I'm bored of waiting for him to contact somebody so I'm doing it myself.
I have written the code as mysql_connect("liberty.xssl.net:2083", "usernamex", "passwordx") or die(mysql_error());
mysql_select_db("databasex") or die(mysql_error());
But this returns the error "Lost connection to MySQL server at 'reading initial communication packet', system error: 0".
Have I put the wrong host name in where it says "liberty.xssl.net:2083"? If so, what should I have put in?
Thanks,
~Finchyy
P.S. Where it says "usernamex", "passwordx" and "databasex" is where his actual username, password and database name is.
After guessing the server that we had to connect to, we ran into some problems. Now, he is too shy to post on here and I'm bored of waiting for him to contact somebody so I'm doing it myself.
I have written the code as mysql_connect("liberty.xssl.net:2083", "usernamex", "passwordx") or die(mysql_error());
mysql_select_db("databasex") or die(mysql_error());
But this returns the error "Lost connection to MySQL server at 'reading initial communication packet', system error: 0".
Have I put the wrong host name in where it says "liberty.xssl.net:2083"? If so, what should I have put in?
Thanks,
~Finchyy
P.S. Where it says "usernamex", "passwordx" and "databasex" is where his actual username, password and database name is.