Help!!!! i am newbie to php, i was trying to establish the connection to another machine (solaris) so that i can retrieve data from the database stored inside there using my own PC.
for your information, i am using apache 1.3.27 as my web server, php4 and mysql as i try to build an database with a web portal.
the following is the scripts that i have written:
[PHP]
<?php
$connection = mysql_connect ("202.185.72.62 :80","root","" ) or die ("connection failed");
echo ("connection made!");
mysql_close($co nnection);
?>
[/PHP]
i have also try to use default port number to connect (3306) but it still cannot work!
below is the error message that i got:
please help me as i am totally run out of idea! thanks..
for your information, i am using apache 1.3.27 as my web server, php4 and mysql as i try to build an database with a web portal.
the following is the scripts that i have written:
[PHP]
<?php
$connection = mysql_connect ("202.185.72.62 :80","root","" ) or die ("connection failed");
echo ("connection made!");
mysql_close($co nnection);
?>
[/PHP]
i have also try to use default port number to connect (3306) but it still cannot work!
below is the error message that i got:
Warning: Lost connection to MySQL server during query in c:\phpdev\www\t ry_connection.p hp on line 2
Warning: MySQL Connection Failed: Lost connection to MySQL server during query in c:\phpdev\www\t ry_connection.p hp on line 2
Fatal error: Maximum execution time of 30 seconds exceeded in c:\phpdev\www\t ry_connection.p hp on line 2
Warning: MySQL Connection Failed: Lost connection to MySQL server during query in c:\phpdev\www\t ry_connection.p hp on line 2
Fatal error: Maximum execution time of 30 seconds exceeded in c:\phpdev\www\t ry_connection.p hp on line 2
Comment