X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9570D9DCD2D; Fri, 23 Dec 2005 03:55:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64617-07; Fri, 23 Dec 2005 03:55:06 -0400 (AST) X-Greylist: delayed 00:30:26.429082 by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from mgateway199.xinnetdns.com (mgateway199.xinnetdns.com [210.51.172.199]) by postgresql.org (Postfix) with SMTP id 729089DCD1F; Fri, 23 Dec 2005 03:55:00 -0400 (AST) Received: from [61.170.221.194] by 210.51.172.199 with StormMail ESMTP id 30598.4478998521; Fri, 23 Dec 2005 15:31:23 +0800 (CST) Message-ID: <43ABA65C.1080101@hhstech.cn> Date: Fri, 23 Dec 2005 15:25:16 +0800 From: zhuge xiao User-Agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 To: tgl@sss.pgh.pa.us, evrim@commandprompt.com, pgsql-admin@postgresql.org, pgsql-bugs@postgresql.org, smarlowe@g2switchworks.com Subject: Re: [BUGS] BUG #2118: could not connect to server Content-Type: multipart/alternative; boundary="------------050403020003000306090001" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=3.456 required=5 tests=[HTML_MESSAGE=0.001, RCVD_DOUBLE_IP_SPAM=3.455] X-Spam-Score: 3.456 X-Spam-Level: *** X-Archive-Number: 200512/358 X-Sequence-Number: 20078 This is a multi-part message in MIME format. --------------050403020003000306090001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Tom Lane, I have read the email you mailed me. And I have SELinux enabled in permissive mode and the testlibpq program can run. I am very happy. In the future, I will use the PostgreSQL and give up the MySQL and other databases. I think the PostgreSQL is better than the others. Thank you very much. zhuge xiao Tom Lane wrote: >>"zhuge xiao" writes: >> >> > > >>>>could not connect to server: Permission denied >>>>Is the server running locally and accepting connections on Unix domain >>>>socket "/tmp/.s.PGSQL.5432"? >>>> >>>> >> >> >> >>"Permission denied" indicates a file permissions problem. Check the >>permissions on /tmp and on the socket file itself. If you have SELinux >>enabled in enforcing mode, you might also have a SELinux policy problem >>--- is your selinux-policy package up to date? >> >> regards, tom lane >> >> >> > > --------------050403020003000306090001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
 Tom Lane,

I have read the email you mailed me. And  I have SELinux enabled in permissive mode and the testlibpq program can run. I am very happy. In the future, I will use the PostgreSQL and give up the MySQL and other databases. I think the PostgreSQL is better than the others.

Thank you very much.

zhuge xiao <zhuge@Rinaix.cn>


Tom Lane wrote:

>"zhuge xiao" <zhuge@Rinaix.cn> writes:
>  
>
  
>>could not connect to server: Permission denied
>>Is the server running locally and accepting connections on Unix domain
>>socket "/tmp/.s.PGSQL.5432"?
>>    
>>
    
>
>"Permission denied" indicates a file permissions problem.  Check the
>permissions on /tmp and on the socket file itself.  If you have SELinux
>enabled in enforcing mode, you might also have a SELinux policy problem
>--- is your selinux-policy package up to date?
>
>			regards, tom lane
>
>  
>
  
--------------050403020003000306090001--