MySQL connection problem

From: Date: Tue, 20 Feb 2001 00:00:46 +0000
Subject: MySQL connection problem
Groups: php.install 
Request: Send a blank email to php-install+get-2137@lists.php.net to get a copy of this message
Using RedHat7, apache_1.3.17, php-4.0.4pl1 and MySQL 3.23.32. I installed MySQL from an RPM. I installed PHP and apache from source, statically. I can access MySQL from an linux prompt: mysqladmin -ulcm lists: Server version 3.23.32 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/lib/mysql/mysql.sock Uptime: 4 days 23 hours 46 min 45 sec Threads: 1 Questions: 69 Slow queries: 0 Opens: 18 Flush tables: 1 Open tables: 12 Queries per second avg: 0.000 However, mysqladmin -h hostname gives the -? help. When I create the following in a php script: $link = mysql_pconnect ('server.xyz.com', 'root'); The web page puts the following out: Warning: Unknown MySQL Server Host 'server.xyz.com' (11) in /usr/local/apache/php/samp_db.inc on line 8 What am I missing here?

« previous php.install (#2137) next »