Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3E942476A0F for ; Wed, 18 Dec 2002 14:46:53 -0500 (EST) Received: from smtp.wanadoo.es (unknown [62.37.236.138]) by postgresql.org (Postfix) with ESMTP id 37502476DBA for ; Wed, 18 Dec 2002 14:41:03 -0500 (EST) Received: from there (62-36-147-154.dialup.uni2.es [62.36.147.154]) by smtp.wanadoo.es (8.12.6/8.12.6) with SMTP id gBIJacM0015249 for ; Wed, 18 Dec 2002 20:36:38 +0100 Message-Id: <200212181936.gBIJacM0015249@smtp.wanadoo.es> Content-Type: text/plain; charset="iso-8859-1" From: Jesus Rios To: "POSTGRESLQ-PHP" Subject: Re: problems when i try to connect to my Databasse Date: Wed, 18 Dec 2002 20:41:25 +0100 X-Mailer: KMail [version 1.3.2] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/36 X-Sequence-Number: 1711 Or anyway........., which is the comand for set the passwd to a database allready created.???????????????????????? On Wed 18 Dec 2002 20:32, you wrote: > On Wed, 18 Dec 2002, Jesus Rios wrote: > > Hi........ > > > > Firts, sorry with my English. I am from Galician Country. > > > > My problem is : > > i have only one user( in my postgresql) known as posgres. > > # su postgres > > #passwd ***** > > > > once , i am user postgres , i write : #psql mybd and it does not ask me > > for the BD'pasword ( postgres is like a user root) > > The problem comes when i am running a script php , where I try to > > connect to my BD-----> $db=pg_connect("user=$user dbname=$dbname "). This > > refuse the connection because I dont have the password.!!!!!. >