X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0096C55F03 for ; Thu, 28 Apr 2005 12:34:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61649-10 for ; Thu, 28 Apr 2005 15:34:26 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id B655A55E26 for ; Thu, 28 Apr 2005 12:34:24 -0300 (ADT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 28 Apr 2005 10:34:24 -0500 Subject: Re: Help From: Scott Marlowe To: ElayaRaja S Cc: pgsql-general@postgresql.org In-Reply-To: <79f1097e05042807514478ad1d@mail.gmail.com> References: <79f1097e05042807514478ad1d@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1114702463.13303.1341.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 28 Apr 2005 10:34:24 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/1335 X-Sequence-Number: 77248 On Thu, 2005-04-28 at 09:51, ElayaRaja S wrote: > After login as su postgres > I am unable to create the db; > > > $ createdb -E utf8 -U system myDB; > ERROR: permission denied to create database > createdb: database creation failed: ERROR: permission denied to create database What's with the -U system in there? As the postgres user, (i.e. either leave out the -U system or make it -U postgres) it should work fine. Oh, and you MAY want to just stick to lower case names for databases, tables, fields etc... It's easier in the long run.