Hi
You need to pinpoint where the break in communication is.
Does php connect ok to a database on the local machine?
no - php or local MySql config problem?
yes - can you ping the database server from the php server?
no - network problem
yes -MySql problem
-is MySql running
Also the following might give a more useful error message
$link=mysql_connect($hostname, $user, $pass)
echo mysql_errno() . : . mysql_error(). \n;
Peter
---
Excellence in internet and open source software
Cassy M Rowe wrote:
I have a php page on server #1 trying to access a database on server
#2. What do I put in the following blanks:
$hostname: ___ (have tried IP, http, localhost, nothing works)
$username: blah
$password: blah
$database: _
$link=mysql_connect($hostname,