X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 38734D1B558 for ; Fri, 12 Sep 2003 00:41:55 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 39853-10 for ; Thu, 11 Sep 2003 21:41:48 -0300 (ADT) Received: from vnu.edu.vn (mail.vnu.edu.vn [203.113.130.199]) by svr1.postgresql.org (Postfix) with ESMTP id A4097D1B500 for ; Thu, 11 Sep 2003 21:41:43 -0300 (ADT) Received: from WorldClient ([127.0.0.1]) (authenticated user trantu@vnu.edu.vn) by vnu.edu.vn (vnu.edu.vn [203.113.130.199]) (MDaemon.PRO.v6.8.4.R) with ESMTP id 42-md50000000145.tmp for ; Fri, 12 Sep 2003 07:40:20 +0700 Received: from [10.6.1.63] via WorldClient with HTTP; Fri, 12 Sep 2003 07:40:20 +0700 Date: Fri, 12 Sep 2003 07:40:20 +0700 From: "Tran Anh Tu" To: Subject: Re: Help me Message-ID: X-Mailer: WorldClient 6.8.4 X-Authenticated-Sender: trantu@vnu.edu.vn X-Spam-Processed: vnu.edu.vn, Fri, 12 Sep 2003 07:40:20 +0700 (not processed: message from valid local sender) X-MDRemoteIP: 127.0.0.1 X-Return-Path: trantu@vnu.edu.vn X-MDaemon-Deliver-To: pgsql-php@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/31 X-Sequence-Number: 2308 Hi all! Postgresql is installed automatically with rpm packets, It run perfectly with command : /etc/init.d/postgresql start But when I stop it and switch to user: postgres, and start it with command: postmaster -i then it does not working because It don't know where the database is placed. A error message: postmaster does not know where to find the database system data. You must specify the directory that contains the database system either by specifying the -D invocation option or by setting the PGDATA environment variable. Please help me! ******************************************************* Tran Anh Tu Vien CNTT - DHQG Ha Noi Phone: 047680417-25 Email trantu@vnu.edu.vn *******************************************************