Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 4F824E4A341 for ; Thu, 10 Nov 2011 23:41:02 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 59590-01-7 for ; Fri, 11 Nov 2011 03:40:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.213.174]) by mail.postgresql.org (Postfix) with ESMTP id 07B3318789B6 for ; Thu, 10 Nov 2011 23:40:18 -0400 (AST) Received: by yenr9 with SMTP id r9so2723415yen.19 for ; Thu, 10 Nov 2011 19:40:19 -0800 (PST) Received: by 10.101.128.12 with SMTP id f12mr4541283ann.148.1320982819414; Thu, 10 Nov 2011 19:40:19 -0800 (PST) Received: from ayaki.localdomain (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id j25sm15141350yhm.12.2011.11.10.19.40.17 (version=SSLv3 cipher=OTHER); Thu, 10 Nov 2011 19:40:18 -0800 (PST) Message-ID: <4EBC98E0.2080206@ringerc.id.au> Date: Fri, 11 Nov 2011 11:39:12 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: daflmx CC: pgsql-general Subject: Re: References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------010603010901030304040305" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201111/438 X-Sequence-Number: 182009 This is a multi-part message in MIME format. --------------010603010901030304040305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit You have sent this message at least once before. Pleas go back and read the replies to the first one, don't just re-send your message. On 11/11/2011 11:36 AM, daflmx wrote: > Hello,all. > I have installed the postgresql . > $/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data start > LOG:database system was shut down at 2011-11-10 15:36:14 CST > LOG:database system is ready to accept connections > LOG:autovacuum launcher started > when I check the status of cluster > $/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data status > pg_ctl:server is running(PID 18432) > but why I cannot create a database successfully? > $/usr/local/pgsql/bin/createdb mydb > createdb:could nto connect to database postgres:could not connect to > server:No such file or directory > Is the server running locally and accepting connections on Unix domain > socket"/var/run/postgresql/.s.PGSQL.5432"? > and I did not find the ".s.PGSQL.5432" file in the whole file > system.what's the wrong? > Thanks. --------------010603010901030304040305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You have sent this message at least once before.

Pleas go back and read the replies to the first one, don't just re-send your message.


On 11/11/2011 11:36 AM, daflmx wrote:
Hello,all.
I have installed the postgresql .
$/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data start
LOG:database system was shut down at 2011-11-10 15:36:14 CST
LOG:database system is ready to accept connections
LOG:autovacuum launcher started
 when I check the status of cluster
$/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data status
pg_ctl:server is running(PID 18432)
but why I cannot create a database successfully?
 $/usr/local/pgsql/bin/createdb mydb
createdb:could nto connect to database postgres:could not connect to server:No such file or directory
Is the server running locally and accepting connections on Unix domain socket"/var/run/postgresql/.s.PGSQL.5432"?
and I did not find the ".s.PGSQL.5432" file in the whole file system.what's the wrong?
Thanks.

--------------010603010901030304040305--