Re: PHP connection to MySQL fails (newbie)

2004-01-27 Thread drubl
Thanks, Ligaya. Yes, the system name is "rh01", according to localhosts and /etc/net and /etc/sysconfig/network. Your question caused me to question my networking configuration, so I tried connecting to "localhost". That seems to work. Was able to add a row to the table. Cheers, Drubl ---

Re: PHP connection to MySQL fails (newbie)

2004-01-27 Thread Ligaya Turmelle
Is your host name "rh01"? That is supposted to be the host name (www.rh01.com) or IP address(127.0.0.1). also try adding this: $db_connection = mysql_connect ("rh01", "llama", "camel") OR die ("Could not connect to database. Please try again later". mysql_error()); At the very least it will all

PHP connection to MySQL fails (newbie)

2004-01-27 Thread drubl
Trying to get make my first PHP connection to a DB. The mysql_connect appears to be the point of failure. The line number in the error output correlates to the call. Am able to use the same user, password, etc, to connect to the "accounting" database as either user "llama" and user "root" using