From jhck81@hotmail.com Fri Feb 16 18:59:53 2001 Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1GIxrx42982 for ; Fri, 16 Feb 2001 13:59:53 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from hotmail.com (f181.law14.hotmail.com [64.4.21.181]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1F4Wsx19486 for ; Wed, 14 Feb 2001 23:32:55 -0500 (EST) (envelope-from jhck81@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 14 Feb 2001 20:32:50 -0800 Received: from 203.52.20.165 by lw14fd.law14.hotmail.msn.com with HTTP; Thu, 15 Feb 2001 04:32:49 GMT X-Originating-IP: [203.52.20.165] From: "jeff kuo" To: pgsql-admin@postgresql.org Subject: variable question with postgresql Date: Thu, 15 Feb 2001 12:32:49 +0800 Mime-Version: 1.0 Content-Type: text/html Message-ID: X-OriginalArrivalTime: 15 Feb 2001 04:32:50.0081 (UTC) FILETIME=[5A88A110:01C09708] X-Archive-Number: 200102/109 X-Sequence-Number: 709
hi, all
I am using phpPgAdmin to create tables and fields, and how do I use SET variables to defind a title, eg. Mr. Miss. Mrs.
 
Another question, when I use the pg_connect("localhost","","","","dbname"); to connect to a the database, the server returns this message
 
Unable to connect to PostgreSQL server: connectDB() -- connect() failed: Connection refused Is the postmaster running (with -i) at 'localhost' and accepting connections on TCP/IP port '5432'?
 
and when I chage to pg_connect("","","","","dbname");
return this message
Unable to connect to PostgreSQL server: FATAL 1: SetUserId: user 'www-data' is not in 'pg_shadow'
 
can anyone please tell me why !? thank you very much
 
Jeff K.
 


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

From sszabo@megazone23.bigpanda.com Fri Feb 16 19:23:54 2001 Received: from megazone23.bigpanda.com (rfx-64-6-210-138.users.reflexcom.com [64.6.210.138]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1GJNsx46767 for ; Fri, 16 Feb 2001 14:23:54 -0500 (EST) (envelope-from sszabo@megazone23.bigpanda.com) Received: from localhost (sszabo@localhost) by megazone23.bigpanda.com (8.11.2/8.11.2) with ESMTP id f1GJNpX12605; Fri, 16 Feb 2001 11:23:52 -0800 (PST) Date: Fri, 16 Feb 2001 11:23:51 -0800 (PST) From: Stephan Szabo To: jeff kuo cc: pgsql-admin@postgresql.org Subject: Re: variable question with postgresql In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/112 X-Sequence-Number: 712 On Thu, 15 Feb 2001, jeff kuo wrote: > hi, all > I am using phpPgAdmin to create tables and fields, and how do I use SET variables to defind a title, eg. Mr. Miss. Mrs. > > Another question, when I use the pg_connect("localhost","","","","dbname"); to connect to a the database, the server returns > this message > > Unable to connect to PostgreSQL server: connectDB() -- connect() failed: Connection refused Is the postmaster running (with > -i) at 'localhost' and accepting connections on TCP/IP port '5432'? Okay, this probably means you didn't start the server with -i so it's only accepting local unix domain socket connections. > and when I chage to pg_connect("","","","","dbname"); > return this message > Unable to connect to PostgreSQL server: FATAL 1: SetUserId: user 'www-data' is not in 'pg_shadow' Have you created a database user www-data?