Received: from visi.net (arsenal.visi.net [206.246.194.60]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0MKDAl74435 for ; Tue, 22 Jan 2002 15:13:10 -0500 (EST) (envelope-from jself@ci.newport-news.va.us) Received: from [216.54.6.254] (HELO localhost.localdomain) by visi.net (CommuniGate Pro SMTP 3.5) with ESMTP id 12535700 for pgsql-php@postgresql.org; Tue, 22 Jan 2002 15:12:01 -0500 Subject: Not able to connect to server from PHP From: Jeff Self To: pgsql-php@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 22 Jan 2002 15:13:01 -0500 Message-Id: <1011730382.15600.8.camel@personnel_test> Mime-Version: 1.0 X-Archive-Number: 200201/45 X-Sequence-Number: 851 I'm working on a personnel database for my department. I can connect just fine using 'psql personnel'. I've created a PHP script to get a list of departments, but I'm getting the following error message: Warning: Unable to connect to PostgreSQL server: Peer authentication failed for user 'jeff' in /var/www/personnel/departments.php on line 10 Unable to connect to database. Here's my script: