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 22F5CD1B50C for ; Fri, 12 Sep 2003 07:39:11 +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 28433-01 for ; Fri, 12 Sep 2003 04:39:02 -0300 (ADT) Received: from lighthouse.MplusB.de (lighthouse.MplusB.de [193.102.49.10]) by svr1.postgresql.org (Postfix) with ESMTP id F1092D1B4E5 for ; Fri, 12 Sep 2003 04:38:59 -0300 (ADT) Received: from [193.102.49.130] (helo=compass.MplusB.de) by lighthouse.MplusB.de with esmtp (Exim 3.35 #1 (Debian)) id 19xiWC-0004vG-00; Fri, 12 Sep 2003 09:39:00 +0200 Received: from MplusB.de (gerd@sloop.MplusB.de [193.102.49.177]) by compass.MplusB.de (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id JAA31069; Fri, 12 Sep 2003 09:39:00 +0200 X-Authentication-Warning: compass.MplusB.de: Host gerd@sloop.MplusB.de [193.102.49.177] claimed to be MplusB.de Message-ID: <3F617813.5030606@MplusB.de> Date: Fri, 12 Sep 2003 09:38:59 +0200 From: Gerd Terlutter User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.2) Gecko/20030401 Debian/1.0.2-2 X-Accept-Language: de-de MIME-Version: 1.0 To: Tran Anh Tu Cc: pgsql-php@postgresql.org Subject: Help MMMEEE References: <3F616FC5.8010805@MplusB.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/34 X-Sequence-Number: 2311 Tran Anh Tu wrote: .... > When I start postgresql by the command: > /etc/init.d/postgresql start > then I type with user root: > createdb demo > Have a error message: > user "root" does not exist > What does this mean? please help me, thank you very much. After install PG and run it, you have to su postgres, and then ..$createuser xxxx password: xxxx best you choose your 'normal'user-account (name), pw can be another. This PG-user has root-privilege on PG. Then you can adduser or create DBs as normal user. To start/stop PG, use root# /etc/init.d/postgresql [start/stop/restart...] >>Tran Anh Tu wrote: >> >>>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. >>>Please help me! >> >>tran@tux$su - >>password:xxx >>root#su postgres >>tux:/root$ whoami >>postgres >>tux:/root$ cd >>tux$pwd >>/var/lib/postgres >>tux$ls -al >>does this help? >> >>greetings, >>Gerd -- -------------------------------------------------------- # Gerd Terlutter | Mueller+Blanck Software GmbH # # gerd@MplusB.de | Gutenbergring 38 # # gerd.terlutter@web.de | D-22848 Noderstedt # # tel:0171/6992579 | tel:+49 40 500 171-1 # # Buero:040/500171-17 | fax:+49 40 500 171-71 # --------------------------------------------------------